cypress: Cypress failed to make a connection to the Chrome DevTools Protocol
Current behavior
Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.
This usually indicates there was a problem opening the Chrome browser.
The CDP port requested was 56204.
Error details:
Error: connect ECONNREFUSED 127.0.0.1:56204 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1142:16)
Stack trace
Desired behavior
connect without any issues
Test code to reproduce
demo codes from examples
Cypress Version
9.1.0
Other
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 16 (5 by maintainers)
Just commenting in case it helps anyone else. This issue would randomly happen to us (using cypress v13.3.3) in our azure devops pipeline jobs but only when using the windows-2019 image. We have our tests split up to run in 20 different parallel jobs and inevitably at least one of the agents would get this issue. Switching to ubuntu-20.04 fixed the issue for us.
@lucasbatier
If you see runner-image
Version: 20230917.1.0in your log file, then this image includes Chrome117which has a bug that causes Cypress <12.15.0to fail.If possible, update to
cypress@^12.15.0or later.Looking over this thread I don’t see any details about which examples folks are referring to. This ticket is also for a quite old version of Cypress. As such I am going to close this issue. If anyone in this thread is still experiencing this issue on the latest versions of Cypress please open a new ticket and we will be happy to investigate.
@PolinaLyzenkova I solved it this morning, for me it was a typo inside my /etc/hosts and for another guy I found on a blog post he was missing
127.0.0.1 localhostlet me know how it goes for youI have the same issue for both firefox and chromium.
Cypress Version
9.1.1