question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route:

See original GitHub issue

Current behavior

I’m trying to reproduce the documentation example of intercept and then wait alias of intercept but it’s giving this error

CypressError Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route: getSettings. No request ever occurred.Learn more

Test code to reproduce

      describe('settings', () => {
        it('should settings ', () => {
         cy.intercept('http://example.com/settings').as('getSettings')
         cy.wait('@getSettings')     
        })
     })

Cypress Version

^9.3.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
TifeDadacommented, Aug 17, 2022

“Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 4th request to the route: currentUserRequest. No request ever occurred.” I’m getting this error after I upgraded to Cypress 10 from Cypress 7 and it was working properly before the upgrade. Anyone else experienced this and knows how to fix it?

7reactions
sainthkhcommented, Mar 25, 2022

Closing because of the inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cy.wait() timed out waiting 5000ms for the 1st request to the ...
CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'route_login'. No request ever occurred.
Read more >
How to wait for a request to finish before moving on with Cypress
ERROR: Timed out retrying after 5000ms: cy.wait() timed out waiting 5000ms for the 1st request to the route: file. No request ever occurred....
Read more >
wait - Cypress Documentation
wait() will only run assertions you have chained once, and will not retry . Timeouts. cy.wait() can time out waiting for the request...
Read more >
cypress-io/cypress - Gitter
CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'searchModalRoute'. No request ever occurred.
Read more >
Waiting in Cypress and how to avoid it - Filip Hric
Use "defaultCommandTimeout" to change default timeout ... Cypress will wait for the element to appear in DOM and will retry while it can....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found