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
Getting HttpParseException when using ApolloClient with HttpCache configuration #1786
Comments
I also ran into this when trying to add the Instabug http interceptor to my OkHttp instance. Can't tell if the bug is in the Instabug interceptor or the |
Reproduced today with version 1.2.3 |
hey folks, to clarify is this issue happens when you provide custom okHttp with custom interceptor to Apollo client? |
@sav007 exactly |
@mrctrifork is it possible to take a look at your |
Hey folks, sorry I couldn't reproduce this issue on any of our sample app. I tried several different combinations of OkHttp interceptors (network and application) but couldn't catch the culprit. It could be that one of the custom interceptors closes request prematurely. Could someone please provide a sample app (or modify existing apollo sample) where this issue is reproduced, other than that I can't really help you. |
Just add this to the sample app and it will show the parse error. It's using the OkHttp standard logging interceptor. Note that .BODY is needed as level.
|
Ok, here is an update on this issue. I finally found where is the issue, this issue happens when:
The issues is that Fix is comming. |
It is possible to have the latest version of the Android Apollo Client available via JCenter. Currently 1.4.1 is the only version I can see and would like at least 1.4.3 if not 1.4.4 so that I can have a fix for this issue. |
Summary
I am getting HttpParse Exception when I configure HttpCache in the apolloclient. Without the HttpCache setup I am able to successfully see the response.
Description
Apollo Client setup
Request -
Exception stack trace
Version
Apollo version - 1.1.1
The text was updated successfully, but these errors were encountered: