-
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
Chrome headless fails with "Error: could not find CRI target" #5966
Comments
Possibly related: NeuraLegion/cypress-har-generator#17 From that issue, it may be related to a Chrome issue on macOS (https://bugs.chromium.org/p/chromium/issues/detail?id=994085). Do you have any plugins or other setup? Maybe tapping into Chrome remote debugger? |
Thank you, removing my node modules folder and re-installing so that I got the up to date version of that dependency has fixed the issue. |
I can confirm that I had to remove 3.8.1 cache folder, as well as my node_modules folder, and reinstall from scratch. After that the error went away |
I might be imagining things, but after fiddling with re-installing stuff, it seems to go away for a few runs, and then it comes back with the next |
@jonsmithers I'm experiencing the same issue. |
I could experience the same while running in docker containers. |
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 since the original issue was resolved. There may be a specific edge case with the issue that we need more detail to fix. |
Duplicate of #6053 |
Current behavior:
I'm running the command
node_modules/.bin/cypress run -b chrome --headless -s './cypress/integration/003_website_settings/01_init.js'
(the path to the test is not relevant)I get the error
Error: could not find CRI target
I have tried on my Macbook and also on our CI server (Ubuntu).
Running with debug env variable shows the following
I think the relevant part is:
Desired behavior:
I would like the test to run in a headless Chrome instance.
Steps to reproduce: (app code and test code)
Install and run cypress with a test (the contents of the test seem to be irrelevant as it fails before it starts running the test.
Versions
Chrome Version 79.0.3945.79
Cypress Version 3.8.0
The text was updated successfully, but these errors were encountered: