-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
java.io.IOException: gzip finished without exhausting source #1170
Comments
Do you have access to the raw response? The example you pasted is (obviously) not gzipped, and it's going to be hard to reproduce what's happening here without the exact data. I'm still going to give it a quick shot, but I can only guess as to the behavior you're seeing which isn't all that useful. |
Thanks @JakeWharton Is it OK if I send you the details privately? |
Sure! You can email me at jakewharton@gmail.com. |
OK. This one can be closed. It has nothing to do with retrofit/OkHttp. In fact, it seems that the problem was that the server code (not Apache) was always sending a Content-Length header back even in cases where chunked encoding was being used. |
Hi Bill, I have to same error in one of my application. Can you tell me how you fixed it ? |
这个问题解决了吗?我也遇到了 |
Hi,
I am using Retrofit (2.0.0-beta2) in an Android application to consume a REST service written in PHP. All the responses are gzipped. Also, I am using a GsonConverter to convert the response to java objects.
In some cases, OKio throws an exception like the one seen below
A response example can be seen below (taken from Fiddler)
Any help would be appreciated.
Thanks,
Bill
The text was updated successfully, but these errors were encountered: