-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
431 status code on stubbed XHR requests with large response in 3.5.0 #5431
Comments
Same issue here. Rolling back to 3.4. Thanks for this tool btw |
3.5.0 should've increased the max header size: #76 But it looks like there's some sort of regression. Node 12 (which Cypress 3.5.0 uses) made the max headers size only 8kb, down from 80kb: nodejs/node#25528 They also added a |
I've hit this issue also. Rolling back to 3.4.1. |
I also found this issue because I have a lot of XHR stubbed responses. Cypress returns |
WorkaroundSetting the environment variable
|
This comment has been minimized.
This comment has been minimized.
If you are going back to Cypress 3.4.1 don't update NodeJs to the latest (12.13.0 LTS), because of this bug: #5241 (solved in Cypress 3.5.0) Install NodeJs v12.10 and you be fine. |
There is a new PR to fix this, as the other PR to fix this encountered newer issues. #5525 |
The code for this is done in cypress-io/cypress#5525, but has yet to be released. |
Released in |
Is there any update? 3.8.2 still got 431 |
This issue will be closed to further comment as the exact issue here was resolved and tested in Cypress 3.6.0. @tapa-nama If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
I have a request that is responding with a 431 status in 3.5.0 of Cypress, which was responding with a 200 in 3.4.1.
We are legitimately sending a large amount of characters in our response, I've included it below. If I reduce the size of this response content, it then passes as 200 status code.
Desired behavior:
Responding with a 200
Steps to reproduce: (app code and test code)
Versions
3.5.0
The text was updated successfully, but these errors were encountered: