Patrick Jackson
11/26/2019, 6:06 PMval byteArray = ByteArray(throwable.response.content.availableForRead)
response.content.readfully(response.content.availableForRead)
val text = String(byteArray, 0, byteArray.size, Charsets.UTF_8)
When debugging and stepping through it reads the response fine. Without stepping through text
is an empty String. Seems like a race condition. Will readFully
stream the complete content? Or is there some sort of waiting that must be done for the request to complete?val text = String(throwable.response.content.toByteArray())