Visitar URL original
Workaround silent crash in node 20 on await stream cancel by brabeji · Pull Request #700 · sindresorhus/ky · GitHub
Skip to content

Workaround silent crash in node 20 on await stream cancel - #700

Closed
brabeji wants to merge 1 commit into
sindresorhus:mainfrom
recombee:brabeji-patch-1
Closed

brabeji wants to merge 1 commit into
sindresorhus:mainfrom
recombee:brabeji-patch-1

Conversation

@brabeji

@brabeji brabeji commented Jun 3, 2025

Copy link
Copy Markdown

Just an observation, maybe this is not an actual fix. On Node.js 20, awaiting promise returned from ReadableStream cancel silently crashes the process.

brabeji added a commit to recombee/node-api-client that referenced this pull request Jun 3, 2025
@sholladay

Copy link
Copy Markdown
Collaborator

Instead of removing the await, we could add a try catch. Does that solve it and prevent the process from crashing silently?

@sholladay

Copy link
Copy Markdown
Collaborator

@brabeji can you please check the latest 20.x version, e.g. 20.19.4, and see if this fix is still valid/necessary? They've added a number of bugfixes recently that could be relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants