-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
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
Metadata
Metadata
Assignees
Labels
streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.