Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't show the Cypress error page on network errors #4101
When a request is proxied through Cypress and there is a network error, currently we send a valid HTML response with a 500 status code:
This causes issues when users expect their applications to behave like the real world.
Current issues include:
If we don't send that error anymore, then there's no issue. We should just kill the browser-facing socket and let users handle the network error in application code.
We should still retain the old error for failed file requests, since we stand up a web server for them and can serve 404's or what have you: