Azure / Azure/fetch-event-source

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

Open
#100 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.9k
Forks
196
PR merge metrics
No merged PRs in 30d

Description

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..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.