Skip to content

When aborting the event source using abort controller, no callbacks (onError / onClose) are fired #100

Open
@yogesh200002

Description

@yogesh200002

When aborting the request using abortController, fetch will throw a error with AbortError as name to identify whether it is aborted by the user or not. But when abort is used on fetchEventSource, neither onClose or onError are fired. onError should be throwing a error when this happens. Due to this, we have to wire up logics differently due to this shortcoming..

Activity

changed the title [-]When aborting the event source using abort controller, no callbacks (onError / onClose) are fired?[/-] [+]When aborting the event source using abort controller, no callbacks (onError / onClose) are fired[/+] on Jun 20, 2025
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yogesh200002

        Issue actions

          When aborting the event source using abort controller, no callbacks (onError / onClose) are fired · Issue #100 · Azure/fetch-event-source