-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress 3.8.1 with Google Chrome 79 sometimes failing with "Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 20 seconds." #6430
Comments
Would you recommend any workaround for this? Other than switching to Electron or rerunning entire suite. |
3.8.1 isn't the latest release. Have you tested with 3.8.3? |
I see that you are using an older version of Cypress. Please update to the current version of Cypress and comment if this is still happening for you and we will consider reopening the issue. Your issue may have already been fixed. |
I see that this issue was fixed on 3.8.1 (#5912). I am on 3.8.2 and still have exactly the same issue. Though it's sporadic, and came up only after a couple of weeks on 3.8.2. |
If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Hi,
There is no step to reproduce except following the getting started tutorial, it fails when running the test. |
I experience this too with latest "cypress": "4.4.1". Sometimes, not everytime and without any code change, I get this error at the middle of the tests. As @sergeyKhristenko said, always when cypress starts a new test in my all tests suite, not in middle of one test. Very difficult to reproduce as it happens quite randomly. |
4.11.0 Still happening |
If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Hi there, I have a similar error:
`Timed out waiting for the browser to connect. Retrying... This usually indicates there was a problem opening the Chrome browser. The CDP port requested was 49379. Error details: Error: connect ECONNREFUSED 127.0.0.1:49379 |
It is worth to mention it is always happening after the 18th attempt |
I can confirm this from my end, always failed on the 18th |
Tests are slow, so you say run headless chrome it is faster.. but headless chrome fails to connect 80% of the time.... |
THIS FIXES THIS PROBLEM!!! by @simisimon in #6540 (comment)_ |
Thank you. Helped me |
Do a |
As @ackuser mentioned, just kill one of Chrome processes in Activity Monitor or via script. |
Current behavior:
Using Cypress 3.8.1 with Google Chrome 79 tests sometimes failing with the error:
It always seems to happen on starting new test, never in the middle of a test.
Desired behavior:
Cypress always can connect to chrome when it's needed.
Test code to reproduce
Can't see any specific patterns. Seems to happens time to time in random places.
Versions
Cypress - 3.8.1
Google Chrome - 79
Cypress docker image - cypress/browsers:node13.3.0-chrome79-ff70
OS - ubuntu xenial
The text was updated successfully, but these errors were encountered: