-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Cypress crashes completely on some network requests #5585
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
Comments
Adding here: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/util/stream_buffer.js#L13 The following fixes that: if(!chunk || !buffer) {
return;
} |
This is likely due to the XHR mocking changes in If then a request goes out and signals it should be stubbed - but the state doesn't have a record for it, the request will fail, the socket will be closed, but I believe it'll still have a buffer that needs draining, and because we null out the internal request it'll end up being |
The code for this is done in cypress-io/cypress#5605, but has yet to be released. |
The code for this is done in cypress-io/cypress#5605, but has yet to be released. |
Released in |
Current behavior:
Cypress crashes completely (the browser and the application) with the following stack after I navigate to a page that does multiple AJAX requests:
Desired behavior:
I'd like it not to crash.
Steps to reproduce: (app code and test code)
I'm performing the test on an internal site, so I can't really reproduce it.
Versions
cypress@3.6.0
MacOS, High Sierra, 10.13.6 (17G7024)
The text was updated successfully, but these errors were encountered: