You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Android, certain HTTP request errors cause an IOException to be thrown in the Response constructor that is called by Request.send(). This prevents the caller from getting access to Response#getStream(), which makes it difficult to handle specific errors.
Android documentation for HTTPUrlConnection, states that if HttpUrlConnection#getInputStream() throws an IOException, then HttpUrlConnection#getErrorStream() may be called in order to read the error response from the server.
The text was updated successfully, but these errors were encountered:
In Android, certain HTTP request errors cause an
IOException
to be thrown in theResponse
constructor that is called byRequest.send()
. This prevents the caller from getting access toResponse#getStream()
, which makes it difficult to handle specific errors.Android documentation for HTTPUrlConnection, states that if
HttpUrlConnection#getInputStream()
throws anIOException
, thenHttpUrlConnection#getErrorStream()
may be called in order to read the error response from the server.The text was updated successfully, but these errors were encountered: