-
Notifications
You must be signed in to change notification settings - Fork 660
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
ApolloParseException caused by SocketTimeoutError while reading response body #2783
Comments
Hi 👋 That |
Hmm - so if I'm understanding you correctly, it seems like this is timing out while talking to our backend? In that case, wouldn't it be more appropriate to raise an ApolloNetworkException so clients can handle this like any other timeout case? |
Yup
Yup too, that makes perfect sense. The whole |
I'll close this for now. 4.x has:
|
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better. |
Summary
Apollo throws ApolloParseException when reading the response times out.
Version
2.4.5
Description
This one seems odd. It's possible this is intended behavior somehow, but it felt strange enough that I decided to report it. We're seeing some crashes in our app in the ApolloParseInterceptor which appear to occur when it is unable to read the data from the OkHttp response without timing out. Here's the relevant exception:
It seems like maybe, somehow, the response it is receiving is not a JSON object? Would that cause a socket timeout, or am I misunderstanding this? I would only expect to see a Parse exception on some sort of malformed response, but the fact that the underlying issue here appears to have a SocketTimeout underneath feels odd to me. I'm going to add some additional handling to my application to see if I can get a better understanding of what's going wrong, but...
The text was updated successfully, but these errors were encountered: