-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Unhandled 'error' event on aborted request #36931
Copy link
Copy link
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.linuxIssues and PRs related to the Linux platform.Issues and PRs related to the Linux platform.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.linuxIssues and PRs related to the Linux platform.Issues and PRs related to the Linux platform.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always. No required condition.
What is the expected behavior?
The error is handled by the
'error'event listener.What do you see instead?
The error is not handled.
Additional information
If
req.abort()is removed the error is correctly handled.