Skip to content

bug: Intentional request cancellation triggers 'Critical Unhandled Rejection' logs #22613

@euxaristia

Description

@euxaristia

What happened?

When a user cancels a request (e.g., by pressing ESC), an AbortError is thrown. In some cases, this surfaces as an unhandled promise rejection, which triggers a "Critical Error" message in the debug console, despite being a normal part of the cancellation flow.

What did you expect to happen?

AbortError should be caught and ignored by the global unhandled rejection handler to avoid unnecessary log noise.

Client information

Linux

Additional context

Found while analyzing debug logs during user-initiated cancellations.

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions