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
test should not throw random 500.
windows 10 pro + chrome + cypress 3.0.2
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.
For us, the error 500 is more consistent but still doesn't make sens.
Login in and out twice in the same _specs.js will throw some error 500 on the second attempt to log in.
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 https://github.com/cypress-io/cypress/issues/1039 , https://github.com/cypress-io/cypress/issues/2938 and https://github.com/cypress-io/cypress/issues/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
Deleting the node_modules 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.