Open yanns opened 3 years ago
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. If you have an idea on a test that could reproduce this issue, I could spend some time on it.
@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: https://github.com/agourlay/cornichon/issues/391