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
The user suspects a bug in @effect/platform-node/NodeStream.toReadable when used with Stream.concatAll.
The issue was discovered while using a stream as the body of an HTTP request with the undici layer, which utilizes NodeStream.toReadable.
Minimal Reproducible Example (MRE):
The user provided a smaller minimal reproducible example (MRE) to demonstrate the issue.
Potential Cause:
Another user, datner_, suggests that the problem might be with Stream.empty, which writes an empty chunk. This behavior could be causing issues with the Channel.
It is suggested that Stream.empty should use a void implementation similar to Stream.make.
Key Takeaways
Suspected Bug Location: @effect/platform-node/NodeStream.toReadable in combination with Stream.concatAll.
Context: The issue arises when using the stream as the body of an HTTP request with the undici layer.
Potential Root Cause: Stream.empty writing an empty chunk, which may trip up the Channel.
Suggested Fix: Modify Stream.empty to use a void implementation like Stream.make.
This summary encapsulates the main points and potential solutions discussed in the conversation.
Summary
Summary
Issue Identification:
@effect/platform-node/NodeStream.toReadable
when used withStream.concatAll
.NodeStream.toReadable
.Minimal Reproducible Example (MRE):
Potential Cause:
Stream.empty
, which writes an empty chunk. This behavior could be causing issues with theChannel
.Stream.empty
should use avoid
implementation similar toStream.make
.Key Takeaways
@effect/platform-node/NodeStream.toReadable
in combination withStream.concatAll
.Stream.empty
writing an empty chunk, which may trip up theChannel
.Stream.empty
to use avoid
implementation likeStream.make
.This summary encapsulates the main points and potential solutions discussed in the conversation.
Discord thread
https://discord.com/channels/795981131316985866/1280245858323140740
The text was updated successfully, but these errors were encountered: