-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users unable to login with Auth0 if MSW is running #606
Comments
Hi @ollie-ki - thanks for raising this The issue looks like it might be related to mswjs/interceptors#212 Can you confirm what version of @mswjs/interceptors and what version of Node you are using? |
Hi there!
Thanks, Ollie |
Yep it looks like mswjs/interceptors#212 Can you upgrade |
I've updated everything to |
I'm not sure how msw works, but I suspect this isn't an issue with the SDK. If you can debug it some more and find an issue with the SDK I'd be happy to take a look, alternatively if you'd like me to debug it for you - can you share a running example that demonstrates the issue |
Closing - happy to reopen if you want to share a running example that demonstrates the issue |
@ollie-ki Same here. Trying to logout hangs. Tried using latest packages for all dependencies, including updating Debugging shows the last event to have successfully cloned a request to |
So after a bit of troubleshooting I isolated the problem to the Downgrading to |
Can confirm I'm experiencing the same issue with |
I'm also experiencing a similar issue, It only happens with POST requests with a body done through axios. |
having absolutely same problem, but downgrading MSW is not an option as we need to use latest version to not get other issues with MSW :-( My context is not nextjs... i am using vite/vue3 project with server side rendering.... and express-openid-connect within my express server.. but the described error is exactly the same. @kettanaito this prevents me in using MSW. it's impossible. |
One thing I always ask people to check is whether they're using the latest
You should get |
@kettanaito i can confirm. i created an issue at msw github and linked a reproduction. using latest msw version 0.48.3 Issue: Reproduction: |
Description
Issue: When MSW is running on next.js, users are unable to login to the application locally.
Expected: When MSW is running on next.js, users should be able to login to the application locally.
Reproduction
Cannot read properties of undefined (reading 'content-encoding')
shown on the page.The issue is immediately remedied by turning off MSW. Even if MSW doesn't have any handlers, nextjs-auth0 still seems to break.
It looks like it's the callback request(?)
Environment
1.7.0
next: 12.1.0
Mac OS
Chrome
Firefox
MSW
The text was updated successfully, but these errors were encountered: