getting an unhandled request error for requests that are handled but intended to be forwarded on
See original GitHub issueDescribe the bug
When using server.listen({onUnhandledRequest: 'error'})
, I expect to see errors when there’s an unhandled request, but not when the request is handled with a return undefined
.
Environment
msw: 0.27.1
nodejs: 14
npm: 6
Please also provide your browser version.
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/kentcdodds/msw-handler-error-bug
- Install
- Run
node index.js
- See error when
mock = false
but no error whenmock = true
Expected behavior
There should be no error
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:11 (11 by maintainers)
Top Results From Across the Web
getting an unhandled request error for requests that are handled but ...
When using server.listen({onUnhandledRequest: 'error'}) , I expect to see errors when there's an unhandled request, but not when the request is handled with...
Read more >MSW logging warnings for unhandled Supertest requests
In my case, as all of my Supertest requests were to /api endpoints, that looked like: beforeAll(() => server.listen({ onUnhandledRequest: ...
Read more >Add "ctx.forward" for forwarding (bypassing) requests #676
See getting an unhandled request error for requests that are handled but intended to be forwarded on #655. Currently bypassing is done via...
Read more >WebDriver - W3C
WebDriver is a remote control interface that enables introspection and control of user agents. It provides a platform- and language-neutral ...
Read more >Web service error codes (Microsoft Dataverse) - Power Apps
Message: There was a problem with the server configuration changes. Users can continue using the application, but may experience difficulties, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, dang. I think this is above my level of experience 😬
an idea could be to add a new method to
response
object like