cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Receiving error: http://localhost:8000/cypress/artisan - 419: Unknown Status Code

Open fylzero opened this issue 3 years ago • 2 comments

I'm running into this error when trying to run Cypress.

cy.request() failed on:

http://localhost:8000/cypress/artisan

The response we received from your web server was:

> 419: Unknown Status Code

This was considered a failure because the status code was not 2xx or 3xx.

If you do not want status codes to cause failures pass the option: failOnStatusCode: false

Has anyone encountered this? Any thoughts on how to get around it?

fylzero avatar Jul 30 '22 00:07 fylzero

I had an 419 and it was because of a missing session. Ensure that you are not testing with SESSION_DRIVER=array.

marcoraddatz avatar Aug 23 '22 20:08 marcoraddatz

@marcoraddatz Thank you! 🚀 I was using array, and it was indeed causing the problem in the beforeAll calls. I settled on file to keep it simple.

vincentauger avatar Oct 27 '22 17:10 vincentauger