Closed
Description
Version
v18.0.0-rc.1
Platform
Microsoft Windows NT 10.0.22000.0 x64 / Linux 5.10.96-90.460.amzn2022.aarch64
Subsystem
Streams
What steps will reproduce the bug?
- Get a large file using fetch
- Convert body to readable stream with Readable.fromWeb
- Try to save the stream into a file
const { body } = await fetch(url);
const readable = Readable.fromWeb(body);
const filePath = path.join('file.txt');
await pipeline(
readable,
fs.createWriteStream(filePath, { flags: 'w' })
);
How often does it reproduce? Is there a required condition?
For some specific files
What is the expected behavior?
Save file to disk
What do you see instead?
stream.push() after EOF
and incomplete file on disk
Additional information
No response