question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MSW fails to resolve response on Safari

See original GitHub issue

Prerequisites

Environment check

  • I’m using the latest msw version
  • I’m using Node.js version 14 or higher

Browsers

Safari

Reproduction repository

https://github.com/netcoding87/msw-safari

Reproduction steps

  • npm install
  • npm run start
  • Open console in browser
  • Click button “Fetch some data” => ‘click’ and the response object are logged, but not the result from response.json()

Current behavior

The response object does not resolve the data in Safari. In other browsers (chromium, firefox) it is working…

Expected behavior

The response object resolves the data and the app can work with the responded data in Safari browsers

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mattcosta7commented, Jul 19, 2022

New version looks good to me, thanks @kettanaito !

1reaction
netcoding87commented, Jul 15, 2022

I’ve seen the same behavior recently with msw version 0.43 and 0.44

I can confirm this. Downgrading to msw 0.42.0 works…

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSW fails to start on Safari · Discussion #1011 - GitHub
When I run my app on Chrome and Firefox, everything works fine. If I run it on Safari it breaks, unless I exit...
Read more >
msw (mock service worker) is always in loading state even ...
The undefined output is where I'm trying to console.debug(data), and when in the debugger I can also see that data is never resolved!...
Read more >
crash of service worker: safari - Apple Community
Try deleting/disabling the third party applications after a restart by using the application un-installer or by using the developer's uninstall ...
Read more >
Mock Service Worker: MSW – Seamless API mocking library ...
Mock the very response that crashes your app. Triage, bisect, and eliminate API-related issues without resetting the state of your application. With the...
Read more >
Complete Solution to "Microsoft Word Not Responding Mac"
Open the Microsoft Office Tools and choose the MS Office Application Recovery feature. Now, select the document which is not responding from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found