edenman
01/28/2021, 7:52 PMResponseException
has an HttpResponse
on it, but it looks like by the time I catch
that exception, the response has already been consumed. I want to parse the json on the response, what’s the best way to do that?edenman
01/28/2021, 7:54 PMResponseException
😭Rustam Siniukov
01/28/2021, 8:10 PMexception.response.receive<Type>()
should workedenman
01/28/2021, 8:10 PMexception.response.content.readEntireUTF8()
edenman
01/28/2021, 8:12 PMRustam Siniukov
01/28/2021, 8:12 PMexception.response.receive<String>()
. content
can be consumed only once, indeededenman
01/28/2021, 8:12 PMaddDefaultResponseValidation
does its own exceptionResponse.readText()
edenman
01/28/2021, 8:12 PMedenman
01/28/2021, 8:15 PM