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

"Still waiting to connect to Firefox" issue in Cypress 10.0.2 on Windows #22086

Closed
laerteneto opened this issue Jun 3, 2022 · 56 comments
Closed

Comments

@laerteneto
Copy link

laerteneto commented Jun 3, 2022

Current behavior

The Firefox doesn't load Cypress in both open and headless mode
image

Desired behavior

Cypress must be loaded within the Firefox browser

Test code to reproduce

In the open mode:

  • cypress open
  • choose Firefox

Headless:
cypress run --browser firefox

Cypress Version

10.0.2

Other

Windows 10
Firefox 101

@lmiller1990
Copy link
Contributor

Thanks for the bug report, and upgrading to Cypress 10 so quickly. I reproduced this - Firefox is timing out for me, too. We are investigating and will publish a patch when we find the cause and solution.

@stacks13
Copy link

stacks13 commented Jun 3, 2022

It's timing out on Cypress 8 and 9 as well.

@lmiller1990 lmiller1990 removed the v10.0.0 🐛 Issue present since 10.0.0 label Jun 3, 2022
@lmiller1990
Copy link
Contributor

lmiller1990 commented Jun 3, 2022

It seems okay for me on Cypress 9.7.0 on windows @stacks13. It might be your setup? I think we do have a 10.x specific Firefox regression, though.

@roshan04
Copy link

roshan04 commented Jun 6, 2022

@lmiller1990 I am facing the same issue with firefox 101 on cypress 9.5.1. The browser is getting launched but still showing the error: Waiting to connect to firefox. Attaching the screenshots. Can you help here.
Screenshot 2022-06-03 at 4 06 40 PM
Screenshot 2022-06-03 at 4 07 16 PM

@lmiller1990
Copy link
Contributor

lmiller1990 commented Jun 6, 2022

Thanks for sharing - I reproduced and can clarify it's windows + Firefox only.

I am unsure why this is occurring, and if it's two different, unrelated regressions or the same. I spent some time last week but no luck, so, I will continue to investigate this further tomorrow.

@fanksin
Copy link

fanksin commented Jun 6, 2022

Check if you get any error on 127.0.0.1

If you use any kind of local development environment software like xampp or mamp, or docker, etc, be sure they are properly closed. If not, start your local server and stop it after everything works properly.

Besides you can run the command npx kill-port 51827 which kills the port I came across that was being used by cypress to run the app on Firefox as 127.0.0.1:51827, then try again to open cypress.

@laerteneto
Copy link
Author

It's timing out on Cypress 8 and 9 as well.

I was able to reproduce the same issue in Cypress 9.7.0/Windows10/Firefox 101.

@tomrobst
Copy link

tomrobst commented Jun 7, 2022

Hi,

Just adding some additional info as I'm having the same issue on Cypress v10.0.3 and Firefox v101.

When starting e2e tests on Firefox, the browser opens but does not start cypress and the console outputs: "Still waiting to connect to Firefox, retrying in 1 second..." etc

I have run Cypress with debugging enabled and it seems there is an issue finding the browser target:

2022-06-07T14:48:40.987Z cypress:server:browsers:browser-cri-client Attaching to target url about:blank
Still waiting to connect to Firefox, retrying in 1 second (attempt 25/62)
2022-06-07T14:48:40.988Z cypress:server:browsers:browser-cri-client error finding browser target, maybe retrying { delay: 1000, err: Error: Could not find url target in browser about:blank. Targets were [] at C:\Users\tomro\AppData\Local\Cypress\Cache\10.0.3\Cypress\resources\app\packages\server\lib\browsers\browser-cri-client.js:90:27 at processTicksAndRejections (node:internal/process/task_queues:96:5) at retry (C:\Users\tomro\AppData\Local\Cypress\Cache\10.0.3\Cypress\resources\app\packages\server\lib\browsers\browser-cri-client.js:39:20) at setupRemote (C:\Users\tomro\AppData\Local\Cypress\Cache\10.0.3\Cypress\resources\app\packages\server\lib\browsers\firefox-util.js:109:27) }

Manually going to the baseURL in the opened browser window (in my case http://192.168.1.107:8081/__/#/specs) does open the cypress specs in Firefox and testing seems to work from this point, however the cypress command line log still fails to connect.

WIndows 11 Pro 10.0.22621
Firefox 101.0 (64-bit)
I'm running Cypress under WSL2.

Thanks very much!
Tom

@rockhold rockhold changed the title "Still waiting to connect to Firefox" issue in Cypress 10.0.2 "Still waiting to connect to Firefox" issue in Cypress 10.0.2 on Windows Jun 7, 2022
@rockhold rockhold assigned tbiethman and unassigned rachelruderman Jun 7, 2022
@JohnLukeBentley
Copy link

I get this issue too, as described at #22117.

@lmiller1990
Copy link
Contributor

Thanks all - in this area there is another PR #22168. I don't think it's aiming to address this problem, but it might help. At the very least, referencing here so when someone picks this up, they have something to go off.

@JohnLukeBentley
Copy link

Given @stacks13's

It's timing out on Cypress 8 and 9 as well.

... the obvious implication seems to be that the problem Cypress/Windows/Firefox interaction arises not from anything introduced in Cypress 10; but from something introduced in Firefox from v101 (or introduced in Firefox v101 on Windows) ... that Cypress was never coded to accommodate.

@felixbrandt
Copy link

Having the same issue on Windows since Firefox updated to 101. Using cypress 9.6.0. Was working fine previously on Firefox 100.

nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 5, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
nikolas added a commit to ccnmtl/mediathread that referenced this issue Oct 6, 2022
These changes separate out the cypress run from the django tests.

* cypress-io/cypress#22086
* https://github.com/cypress-io/github-action
@nikolas
Copy link

nikolas commented Oct 6, 2022

Looks like this is an issue with Firefox 105 in our setup as well. Using Firefox 102.3.0esr instead, the cypress tests run fine. ccnmtl/mediathread#4658

@Dan5123
Copy link

Dan5123 commented Oct 10, 2022

Hello guys,
I have similar issue with Chrome, it has failed to launch the test runner.

3
1
2

@brentsharon
Copy link

Yes this is an issue and is occurring for me using Cypress 10.9.0 FFv105 on a mac. I was also getting this issue on 10.8.0 before the update to 10.9.0. This is an issue with both the runner and headless.

@Dan5123
Copy link

Dan5123 commented Oct 11, 2022

is there any one who can help please

3

@spiltcoffee
Copy link

@Dan-appreciategroup you're probably better off making a new issue for your problem as this issue is specifically a Firefox issue - and closed, might I add! You're very unlikely to get any support in this issue.

@Dan5123
Copy link

Dan5123 commented Oct 11, 2022

@spiltcoffee thanks

@brentsharon
Copy link

@Dan-appreciategroup @spiltcoffee I did make a new issue for this yesterday and got an email that a fix is out in the new release today 10.10.0

@spiltcoffee
Copy link

@brentsharon the main issue you'll be looking for is #23897, and the fix is in #24155, though I haven't checked if the changes in that PR have made it into a release yet.

@brentsharon
Copy link

@spiltcoffee thanks

@Dan5123
Copy link

Dan5123 commented Oct 13, 2022

@brentsharon I have opened a new issue and it has been assigned to someone from Cypress team #24199

@brentsharon
Copy link

@Dan5123 Awesome thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests