Yaffle / EventSource

a polyfill for http://www.w3.org/TR/eventsource/
MIT License
2.11k stars 338 forks source link

Not receiving error status and message on ErrorEvent #170

Closed mihai-hoinaru closed 3 years ago

mihai-hoinaru commented 3 years ago

Receiving only error, target (EventSourcePolyfill) and type: "error". But I'd like to know the status code as well... I'm using https://www.npmjs.com/package/event-source-polyfill, v1.0.24

Yaffle commented 3 years ago

@mihai-hoinaru do you have error property? It may be there is no status code as there is a connectivity problem before receiving the HTTP response.

mihai-hoinaru commented 3 years ago

@Yaffle , the error property is undefined