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.

__/#/tests/... page errors 404 - page not found on Chrome 72+

See original GitHub issue

Is this a Feature or Bug?

BUG

Current behavior:

Sometimes when I run all tests I have such error: image

Important thing that I noticed If i remove tests “group_page.js” (check gif) it seems that the problem disappeared. “group_page.js” using different page: cy.visit(https://localhost:5002) for testing when the other tests that crashing using cy.visit(https://localhost:5000) error2

Check this gif, I had to run 3 times RUN ALL TESTS to make it work. Before always failed at login_page.js

I was trying hardcode url in cy.visit() (before I had url from cypress.json). The same result.

Steps to reproduce:

Run a few tests that include cy.visit(https://localhost:5002) for 1st test and cy.visit(https://localhost:5000) for 2nd test.

Versions

Cypress: 3.0.1 Windows 10 Chrome

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:34 (9 by maintainers)

github_iconTop GitHub Comments

41reactions
jennifer-shehanecommented, Jan 2, 2019

Current Workaround

Add the code below to your cypress/plugins/index.js file to fix the 404 issue:

module.exports = (on) => {
  on('before:browser:launch', (browser = {}, args) => {
    if (browser.name === 'chrome') { 
      // ^ make sure this is your browser name, you may 
      // be using 'canary' or 'chromium' for example, so change it to match!
      args.push('--proxy-bypass-list=<-loopback>')
      return args
    }
  })
}

I’ve opened a PR to fix this is Cypress here: https://github.com/cypress-io/cypress/pull/3049

5reactions
cypress-bot[bot]commented, Jan 30, 2019

Released in 3.1.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

404 Error Page Not Found - 5 Fix Google Chrome - YouTube
Error “ 404 page not found ” on website in Google Chrome | 404 File or Directory Not Found. This Tutorial will guide...
Read more >
404. That's an error. The requested URL was not found on this ...
The error message is coming form the ourhillcountryretreat server. The file being requested does not exist. It has nothing to do with Google...
Read more >
HTTP Status Codes, Network and DNS Errors, and Google ...
A soft 404 error is when a URL that returns a page telling the user that the page does not exist and also...
Read more >
Downloads - ChromeDriver - WebDriver for Chrome
Resolved issue 3641: Page not getting loaded/rendered when browser window is not in focus with Chrome Beta v87 and chromedriver v(87/86).
Read more >
Why is @font-face throwing a 404 error on woff files?
I'm using @font-face on my company's site and it works/looks great. Except Firefox and Chrome will throw a 404 error on the .woff...
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