You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour
The fact that the response body uses zio.http.netty.AsyncBodyReader should be an implementation detail, and calling zio.http.Body.asChunk should not be stateful.
The text was updated successfully, but these errors were encountered:
@kyri-petrou I think would could for the aggregation operations (asChunk/asArray) in the netty body cache the result internally? But I don't think we can do this for streaming, since it would defy the purpose of streaming it (not keeping all in memory). wdyt?
Describe the bug
When provided with the default Client, the following effect fails with an "IllegalStateException: Cannot connect twice":
This is due to the
zio.http.netty.AsyncBodyReader.connect
method being called twice, the second time with an illegal state.To Reproduce
Run this Scastie
Expected behaviour
The fact that the response body uses
zio.http.netty.AsyncBodyReader
should be an implementation detail, and callingzio.http.Body.asChunk
should not be stateful.The text was updated successfully, but these errors were encountered: