Skip to content

AbortController exception in the wrong place and cannot be caught #55742

Description

@uriva

Version

23.1.0

What steps will reproduce the bug?

the code in question is https://github.com/webtorrent/bittorrent-tracker/blob/master/lib/client/http-tracker.js#L147

I'm getting the DOMException from the line where the AbortController is created, that is outside the try/catch

How often does it reproduce? Is there a required condition?

Haven't been able to reproduce it locally, happens on a google cloud run instance

What is the expected behavior? Why is that the expected behavior?

The exception should be caught by the try/catch

What do you see instead?

The exception is thrown from an unexpected location.

Activity

  1. avivkeller commented on Nov 6, 2024

    @avivkeller
    Member

    Can you provide a minimal reproduction?

  2. uriva commented on Nov 7, 2024

    @uriva
    Author

    @redyetidev I think this is fixed by nodejs/undici#3354 which iiuc is part of unidici 7.0.0

    Any idea how I can get this fix in my docker image today? (I don't care which node I'm running)

  3. avivkeller commented on Nov 7, 2024

    @avivkeller
    Member

    You can manually use undici? Or build Node.js manually with the upgraded version.

  4. uriva commented on Nov 8, 2024

    @uriva
    Author

    Actually I see this still hasn't been fixed. There is an active discussion about fix/WAI/bug that I haven't been able to fully figure out.

  5. geeksilva97 commented on Nov 12, 2024

    @geeksilva97
    Contributor

    Actually I see this still hasn't been fixed. There is an active discussion about fix/WAI/bug that I haven't been able to fully figure out.

    Could you leave a repro on this issue then?

  6. uriva commented on Nov 12, 2024

    @uriva
    Author

    @geeksilva97 I don't have a repro, it happens in production under unknown conditions, but others have experienced the same issue, and the same fix works for everyone. You can see the discussion in the pr I linked above.

  7. yharaskrik commented on Dec 17, 2025

    @yharaskrik

    @jordems do we have a minimal repro of this?

  8. github-actions commented on Jul 16, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  9. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions