-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
cy.task('setupMetamask')
failed with ECONNREFUSED 127.0.0.1:9222 ("before all" hook)
#804
Comments
cy.task('setupMetamask')
failed with ECONNREFUSED 127.0.0.1:9222 ("before all" hook)
By the way, "error in Cypress cli output" above is that for the second feature (I haven't committed the other one in the reference setup repo); for the first one it seems to differ from time to time, but now it's
I've also tried adding
to config but it doesn't help. Also, commenting out this feature doesn't affect the initial issue. |
Another thing to note is, Metamask doesn't get configured in its Chrome tab, like it used to be. Presumably the network issue is not being connect to Playwright. Oh, yeah! Looking for 9222 in Playwright repo, I've found a discussion which suggested that the browser should be run with the But I don't have answers to these questions:
I've also assumed that I may have set this env var at some point earlier when I was tinkering Cucumber/Cypress/Synpress and that has somehow cached and applied after I've clean up my setup. But when I've set this variable, run, removed it and run again, I get the errors again, so this doesn't seem to be a valid hypothesis. |
It could also be your .env file. Are you setting |
I'm no longer working on that project, but as you can see from the reference repo, I had |
Describe the bug
My setup worked for some time, but at some point it started failing with this error in Cypress UI:
and this error in Cypress cli output:
Seemingly I haven't changed anything (moreover, I've seen this error before, it took place and then disappeared, and I didn't get what was the cause), so I'm really puzzled with it. I've tested my reference setup and the problem is reproduced there, too!
As I've found this Cypress issue, I've also tried to bump Cypress version to 12.17.0, but it didn't help.
To Reproduce
May be you'll get the same result with:
npm i
npm run test:e2e
Expected behavior
With the repo above, I expect the tests to run as previously (succeed).
Desktop (please complete the following information):
Additional context
cy.screenshot()
timed out waiting30000ms
to complete. #449, drptbl hasn't responded on whether that one should be reopened, so here's a new issue;Please let me know whether you can reproduce this issue, because reproducibility is hell with Cypress/Synpress, and knowing that somebody else can reproduce will help a lot.
The text was updated successfully, but these errors were encountered: