You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could I ask, how can I try-catch this in my codebase? I am trying to wrap the entire EventSource creation + callback setup in a try catch but when this library fails (reading .status on a null object) it still is thrown as a runtime exception and I cannot gracefully fail in the UI.
You're right, I am able to catch it with that :) Thanks! Now it's about stopping the propagation inside Electron so it doesn't appear to the user. But I understand this is out of scope of this repo. If anyone knows how to do this, please let me know.
This error happens when the connection to a server is refused. For example if you don't have proper CSP or the server just refuses.
In the method:
The
xhr
object seems to be null:at SSE._onStreamFailure (webpack-internal:///./node_modules/sse.js/lib/sse.js:155:35)
The text was updated successfully, but these errors were encountered: