-
Notifications
You must be signed in to change notification settings - Fork 63
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
"IllegalStateException: Cannot have multiple pending reads" when using blaze #636
Comments
This looks in the neighborhood of http4s/http4s#4143, but that was WritePending, not ReadPending. |
I don't see any obvious misuse in the cornichon source. This smells like a bug. |
Thanks for the pointer. |
@RaasAhsan found the write side of this, but I think through reasoning about the (unreasonable in this area) code rather than iterating on a failing test. Perhaps he has a pointer? |
sorry i missed this - seems like the exception is being thrown here https://github.com/http4s/http4s/blob/series/0.21/blaze-client/src/main/scala/org/http4s/client/blaze/ReadBufferStage.scala#L43 understanding how this state machine works will probably be the key to understanding why this bug is happening, so i'll try to spend some time on that tomorrow |
When using http4s as HTTP client, we often have this issue:
This issue happens when using cornichon: agourlay/cornichon#391
The text was updated successfully, but these errors were encountered: