cy.request() failed because the server returned an error, the connection was refused, or the request timed out.
cy.request({
url: '/api/data',
failOnStatusCode: false,
}).then((response) => {
expect(response.status).to.eq(404);
});When testing error cases, disable automatic failure on non-2xx status codes.
cy.request({
url: '/api/data',
headers: {
Authorization: `Bearer ${Cypress.env('API_TOKEN')}`,
},
});Include auth headers for protected endpoints. Store tokens in Cypress environment variables.
ObserveOne monitors your API endpoints 24/7 and catches errors before they impact your test suite.
Start Monitoring Freecy.visit() failed to load the target URL. The server may be unreachable, or the response status code indicates an error.
A Cypress command timed out while retrying. Cypress automatically retries assertions until the timeout, then fails. The default is 4 seconds.
Cypress could not find any element matching the selector within the timeout period. The element may not exist, may have a different selector, or may not have been rendered yet.
The element that Cypress was interacting with was removed from the DOM and re-rendered. This is common in React/Vue/Angular apps where components re-render.
A Chai assertion in Cypress failed because the actual value did not match the expected value. This is the most common test failure type.