fetch-event-source icon indicating copy to clipboard operation
fetch-event-source copied to clipboard

A better API for making Event Source requests, with all the features of fetch()

Results 70 fetch-event-source issues
Sort by recently updated
recently updated
newest added
trafficstars

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

如果服务端反给我错误码,在哪里查看,我在onopen事件里面获取不到,报错获取不到;If the server gives me an error code, where can I check it? I cannot get it in the onopen event and cannot get it in the error message

I keep getting this annoying error message on my SvelteKit (with Vite) app through the `svelte-sse` package, but the package itself doesn't have anything to do with it as I...

Javascript's default `fetch` rejects with an `AbortError` when passing an already aborted signal: ```js const controller = new AbortController() controller.abort() await fetch("https://google.com", { signal: controller.signal }) Uncaught: DOMException [AbortError]: This...

I use ollama's api and find that ollama's interface returns ReadableStream, the onMessage method is not work, or does it require special properties? Looking forward to reply

HttpContext.RequestAborted.IsCancellationRequested The above code cannot determine whether the client is disconnected, it has always been false

Title: Race Condition: Incorrect AbortController Status Check During Tab Visibility Changes ### Description #### Bug Report When rapidly switching browser tabs with `openWhenHidden: false`, the error handling logic incorrectly checks...

## Issue close #95 A race condition exists in the error handling of aborted requests when rapidly switching browser tabs. This causes unnecessary request retries and incorrect error handling behavior....

当终止链接时页面直接报错,无法catch ``` const abortController = new AbortController(); fetchEventSource(`${baseServer}/polar//public/aiChat/chat`, { method: 'POST', signal: abortController.signal, headers: { 'Content-Type': 'application/json; charset=UTF-8', user: Storage.getUid() || '', token: Storage.getToken() || '', domain: Storage.getDomain() || '',...

This PR allows for these methods to be either sync or async