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
Catch NoHttpResponseException #135
Comments
And one more thing - it definitely happens before onFailure(Throwable, String), so request just hangs |
It happens something similar to me... I send a request, but I doesn't get the response eve: LoodicRestClient.get(Api.PLACES_EXPLORE, null, new JsonHttpResponseHandler() {
I doesn't get the onFinish never... |
Solved... I forgot internet permission... Why android doesn't warm you about permissions? :S |
I also solved the issue. |
Hi, I'm still having this issue. I have internet permission on my manifest, I overrode the methods and I get the callback to show an error message, its is ok but why it happens so often? |
Look. We debuged the issue on server side and figured out that client prematurely closing connection while setting keep-alive header to connection. Setting header "connection: close" helped a lot in our case. Try it. |
By default this lib set this header (connection:keep-alive)? Do you notice low performance after this change? |
I only do 2-3 requests per activity load. This does not affect performace, even on server side |
solution that worked for me: public AsyncHttpClient() { |
Hello, I'm getting this oftenly.
The issue resolves by just reloading an Activity or resending the request, but I cannot just handle that, `cause the exception already handled somewhere and I don't know where. I'm using 1.4.2 jar-ed version.
The text was updated successfully, but these errors were encountered: