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
I don't think it's a problem with mockServiceWorker.js as I can fetch and read the stream in the browser console. The response signature is very similar to an actual server which Firefox does allow.
The error in the EventSourceonerror callback is empty.
I also use MSW for mocking SSE and I've attached a screenshot of errors in #2117. Are these the same errors you're encountering?
I've tested it against both Firefox and Brave browsers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Does anyone use msw for mocking
text/event-streamresponses and test against Firefox?The following works in Chrome but Firefox refuses the
EventSourceconnection.I don't think it's a problem with
mockServiceWorker.jsas I can fetch and read the stream in the browser console. The response signature is very similar to an actual server which Firefox does allow.The error in the
EventSourceonerrorcallback is empty.Has anyone any insights?
All reactions