-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting intermittent node error when going to URL getaddrinfo ENOTFOUND #1755
Comments
Hi, I tried to reproduce your failure, but it seems I'm failing even earlier than you. I got redirected to a Could you provide a fully reproducible example, using https://github.com/cypress-io/cypress-test-tiny ? For example, just a single spec file that fails. |
Apologies, I should have mentioned that that page runs a script that redirects the page to an international version if you access it from a location outside the United Kingdom. I get around this by blacklisting the host that the script is requested from, so it never runs. We run the tests inside a container. We're using Docker version 18.03.1-ce-mac65 (24312). I've created a sample repo here with the problem test. https://github.com/robert-smith135/test When cloned run these commands:
Because this problem seems to be intermittent I wrote a simple bash script that keeps track of passes and failures that you can run by:
|
@jennifer-shehane I'm seeing the same error with latest Cypress and the same tests work fine on my test env and fail on another env. Not sure how to debug on the issue |
We removed this 500 error in 3.3.0, opting instead to propagate the network error directly to the browser. However, we should also retry on Closing since it's working as it should now and there is another issue to improve the experience. |
Hi @jennifer-shehane, any updates on when this fix would be released? Thanks |
Released in |
Hi, we're running cypress to test the local news section of the BBC news site on out TEST environment https://www.test.bbc.co.uk/news/localnews/2653822-Cardiff/0. (This should be publicly accessible). We have a test that look at the radius buttons to see if they redirect correctly. However it looks like there is some flake (unless I'm doing something wrong) when clicking the button and running an assertion to see if the page has redirected. When running a click command on the button cypress sometimes throws a node networking error: getaddrinfo ENOTFOUND when the page is reloaded.
I'm running the tests in the CLI mode, and the cypress gives me the following screenshot on the failing test:
Current behavior:
The test below sometimes fails.
Desired behavior:
The below test works every time
Steps to reproduce:
Running the below test with the CLI using the cypress docker container https://github.com/cypress-io/cypress-docker-images/tree/master/browsers/chrome65-ff57 sometimes fails.
Im also using the "chromeWebSecurity": false option in cypress.config.
Versions
Cypress: 2.1.0
Browser: Election
Operating System: Debian
The text was updated successfully, but these errors were encountered: