Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error stream is not accessible in Android #1

Open
datalogics-alexk opened this issue Jun 27, 2013 · 0 comments
Open

Error stream is not accessible in Android #1

datalogics-alexk opened this issue Jun 27, 2013 · 0 comments
Labels

Comments

@datalogics-alexk
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant