Azure / Azure/fetch-event-source

handle basic request errors or update README with a demonstration

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

Description

an error is seen in the browser tools using the below call `TypeError: Error in body stream`
```javascript
await new fetchEventSource( `${endpointUrl}/path-does-not-exist`, {
onerror ( err ) {
console.log( 'error', err );
},
onclose ( ev ) {
console.log( 'close', ev );
}
});
```
How does one get error details, such as a response code 404, 401 or 400? Thank you :)

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.