-
Notifications
You must be signed in to change notification settings - Fork 578
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.lang.IllegalStateException: too early; can't read the trailers yet #3049
Comments
Thanks for reporting. It could be that OkHttp throws on reading, and that after OkHttp threw, Wire tries to read the trailers and this fails. |
@oldergod You are right, updated steps to reproduce. I guess IOException is really thrown during read. New steps give similar stacktrace |
Is there no trace from OkHttp's read? And your trace isn't analyzable by the IDE right now, are you modifying it, or is it how the play console shows it? |
This trace is from Bugsnag reported thread. I see trace from another thread though
|
Thanks, good call. I also found another thread with proper trace and updated the question accordingly. In previous messages I guess it was bitdrift logger or something |
@oldergod Do you have any recommendations or a workaround to address the issue? |
I think OkHttp throws on reading and Wire is wrong in reading the trailers if it cannot. If you don't know what the problem is in the reading (or if the cause is elsewhere), I don't see much. I'll try to update Wire so that we don't read the trailers if we are not to. |
Thanks. I don't see reading problem. Our current setup works in prod for 10M+ users. This might be some edge case, but still appears to be the top 1 crash |
Closed with #3087 hopefully. |
Hello!
We have an Android app with huge amount of users and getting crash in Android app
Related thread trace
Most of the time happens in background after activity stop or resume and trying to establish connection
Steps to reproduce:
It's rare edge case for prod that you need to have those 2 exceptions, but still around
0.002%
The text was updated successfully, but these errors were encountered: