Skip to content
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 failed to make a connection to the Chrome DevTools Protocol: ECONNREFUSED at TCPConnectWrap.afterConnect #8986

Closed
Supanovas opened this issue Oct 27, 2020 · 9 comments · Fixed by #14348
Labels
browser: chrome topic: CDP connection Issue with connection to Chrome DevTools Protocol type: bug

Comments

@Supanovas
Copy link

Current behavior

I'm simply trying to run some of the tests in the Example folder under Integration and it will not run on Chrome. Runs on Electron and Edge but refuses to run on Chrome.

My version of Chrome is Version 86.0.4240.111 (Official Build) (64-bit)

Current Cypress version is - cypress": "^5.5.0

Desired behavior

Test code to reproduce

Versions

Chrome error

@Supanovas
Copy link
Author

Hi @flotwig I've got the same issue with Cypress failing to make a connection to Chrome DevTools Protocol similar to the one you helped resolved.

Any help trying to resolve this will be greatly appreciated, already logged it and it appears to be a common issue yet no known fix available.

#5912 (comment)

@jennifer-shehane jennifer-shehane added type: bug stage: needs information Not enough info to reproduce the issue labels Oct 28, 2020
@jennifer-shehane jennifer-shehane changed the title Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds. Cypress failed to make a connection to the Chrome DevTools Protocol: ECONNREFUSED at TCPConnectWrap.afterConnect Oct 28, 2020
@jennifer-shehane jennifer-shehane added browser: chrome topic: CDP connection Issue with connection to Chrome DevTools Protocol labels Oct 28, 2020
@Supanovas
Copy link
Author

Hi @jennifer-shehane any update on this please?

@snikaein
Copy link

we experience same error via Firefox

@dvkruchinin
Copy link

I sometimes get this error in Travis-ci. There is no periodicity.

@snikaein
Copy link

snikaein commented Dec 1, 2020

@jennifer-shehane any update on this?

@jennifer-shehane
Copy link
Member

Can anyone provide a reproducible example?

@cw010
Copy link

cw010 commented Dec 30, 2020

I have the same problem!
Failed to connect to Chrome, retrying in 1 second (attempt 18/62)
Failed to connect to Chrome, retrying in 1 second (attempt 19/62)
Failed to connect to Chrome, retrying in 1 second (attempt 20/62)
Failed to connect to Chrome, retrying in 1 second (attempt 21/62)
Failed to connect to Chrome, retrying in 1 second (attempt 22/62)
Failed to connect to Chrome, retrying in 1 second (attempt 23/62)
Failed to connect to Chrome, retrying in 1 second (attempt 24/62)
Failed to connect to Chrome, retrying in 1 second (attempt 25/62)

@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review stage: work in progress and removed stage: work in progress stage: needs review The PR code is done & tested, needs review labels Jan 11, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 19, 2021

The code for this is done in cypress-io/cypress#14348, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 20, 2021

Released in 6.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v6.3.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
browser: chrome topic: CDP connection Issue with connection to Chrome DevTools Protocol type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants