-
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
getting random http response code 500 #2218
Comments
addendum, please note that:
please note also that i'm almost new to cypress, so there could be something obvious going on here, but i've tryed asking the community on the gitter channel without success. |
We get the same type of behavior with the app we are trying to auto-test. |
Same issue here. We know for a fact that the requests are not hitting our server, and we've not been able to find any pattern to it. it's really random... |
We'll need a reproducible example in order to begin looking into this issue. Can anyone provide a way to reproduce this? |
I've encountered this error every time with our own website project. It'll occurs shortly after finishing a test. However, the longer that I use Cypress, the shorter the time length before hitting the 500 code, due to building lag in the Cypress browser. If I close out and relaunch Cypress, it'll go back to normal. It is appears to happen whenever ~60 seconds has passed in the test; The website is still responsive (can navigate to a different page within the same test) and does not display a 500 code when going through normal navigation in the Cypress browser. |
Unfortunately we'll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this? |
I strongly advice against brushing this issue under the rug. This is obviously not an isolated case, as there're many who report the same issue, in this and other threads. I think this is also tied to #1039 , #2938 and #2639 . It has to have something to do with the way cypress channels the requests through. If not solved, this will occur for future users and Cypress can not become a reliable solution for testing large platforms. |
@mabedan I agree! We definitely want to fix these issues, especially one as strange sounding as this, but we need a reproducible example to begin tracking it down. We are also always willing to reopen issues after closing if someone provides an example. We just have to clean up the issues eventually for our sanity. 🙃 |
Just an advice if you clone your repo again for some reason everything works Deleting the cypress cache didn't work Cloning a new project worked |
Hi team, was there a resolution for this issue, we are facing the same quiet consistently. Especially in the past week. |
If you're experiencing a bug similar to this in Cypress, please comment in the issue with a fully reproducible example that we can run. |
@jennifer-shehane if we were able to fully and reliably replicate the issue, we wouldn't need the Cypress team to help fix it. Could you provide maybe some possible places to look or log? We're seeing the issue, and it seems to be originating from Cypress. The 500 error message page is a cypress-owned and presented page, not one of ours. |
Could you explain what you mean by this? Are you visiting one of Cypress's domains? We don't present any 500 error messages within the application under test itself. We do proxy requests and there is logic behind that - so it is definitely possible there is a bug in Cypress. If we can't reproduce it, we have no idea where it could be originating from or how to fix it. |
It appears to be expressed by the cypress application itself. Here's a screen shot: That isn't one of our 500 pages. Where in the code does the proxy logic live? |
@dclowd9901 Yah the state of this error is a bit unusual. Usually an error would be shown in the Is this a screenshot from a video? It may be cutting off the final moments where it shows the error. If you can recreate this locally, is there anything shown in the DevTools console? Or an error printed to stdout? Or do you have any code overwriting Cypress listeners/commands? |
This happens with me frequently, I usually need to restart Cypress several times in order to proceed with execution |
We have the same issue 500-error-example.mp4 |
I have the same problem running my tests. It mostly occurs after a few longer tests have been run (in Gitlab CI). At some point cy.visit() will return a 500 error. |
@jennifer-shehane It's very difficult to provide a sample of this bug since it only occurs on CI. I can attest that this bug is still present and seemingly random. |
Can also confirm this still happens and only in CI Haven't seen anyone else post the stack so:
|
@gauthierm It likely isn't fixed. We need a reproducible example in order to investigate. |
I got the same issue and I'm running the command below in Github Actions. docker run -i -v $PWD:/e2e -w /e2e --network=host --ipc=host cypress/included:13.6.2 |
I started to experience this issue after upgrading Rails from v7.0 to v7.1. It only happens on Github Actions, specs pass locally |
Have we got a resolution for this issue yet? Also I do see this error in the logs: |
Current behavior & Steps to reproduce:
This works as expected:
but this gives some network errors (status code 500):
i've run our application with a debugger, and i'm almost sure our web server is not returning an error but a 200 OK.
the requests that fails are not always the same:
but one of four files, just one of them succeeds. i've run cypress in debug mode and
Desired behavior:
test should not throw random 500.
Versions
windows 10 pro + chrome + cypress 3.0.2
The text was updated successfully, but these errors were encountered: