Describe the bug
If you use readable.pipeTo(writable) it should throw if there is an error from the destination during write. Currently any errors are caught and the writable is aborted, but the pipeTo() method resolves without an error.
To Reproduce Steps to reproduce the behavior:
Pipe the ponyfilled Readable stream to a writable stream that errors. The pipeTo() returned promise will resolve without error.
Expected behavior
pipeTo() should throw on error.
Environment:
N/A
Additional context
This is important because the ponyfilled ReadableStream implementation is used by default in @whatwg-node/server and this bug causes issues consuming request.body.
Describe the bug
If you use
readable.pipeTo(writable)it should throw if there is an error from the destination during write. Currently any errors are caught and the writable is aborted, but thepipeTo()method resolves without an error.To Reproduce Steps to reproduce the behavior:
Pipe the ponyfilled Readable stream to a writable stream that errors. The
pipeTo()returned promise will resolve without error.Expected behavior
pipeTo()should throw on error.Environment:
N/A
Additional context
This is important because the ponyfilled ReadableStream implementation is used by default in
@whatwg-node/serverand this bug causes issues consumingrequest.body.