getting random http response code 500
See original GitHub issueCurrent behavior & Steps to reproduce:
This works as expected:
cy.visit('http://localhost:8080/ui/st.bquadro/agent');
cy.get('.login-content input[type=text]')
.type('admin')
.should('have.value', 'admin');
cy.get('.login-content input[type=password]')
.type('xxxx')
.should('have.value', 'xxxx');
cy.get('.login-content .submit input[name=commit]').click();
cy.visit('http://localhost:8080/ui/st.bquadro/agent#dashboard', {
auth: { username: 'admin', password: 'xxxx' }
});
but this gives some network errors (status code 500):
cy.visit('http://localhost:8080/ui/st.bquadro/agent#dashboard', {
auth: { username: 'admin', password: 'xxxx' }
});
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
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (6 by maintainers)
Top Results From Across the Web
500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >What is “HTTP 500 Internal Server Error” and How to Fix It?
The HTTP 500 error, in particular, indicates that the server encountered an unexpected condition that prevented it from fulfilling the request. In other...
Read more >What Is a 500 Internal Server Error? How to Troubleshoot
A 500 internal server error indicates a non-specific problem with a website's server and is usually beyond a user's control.
Read more >500 error: how to solve - SupportHost
The error 500 can prevent you from accessing a page or website. When this error occurs, in fact, the server sends an HTTP...
Read more >HTTP error code 500 - java - Stack Overflow
First thing to do is look at the server log. 500 indicates something failed in the server, and your server ...
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
Unfortunately we’ll have to close this issue if no reproducible example is provided. Can anyone provide a way to reproduce this?
This randomly happens to us as well:
We’ve never experienced those 500 errors while using the site we’re testing or running the tests locally. It only happens on the CI server.