-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] Error: NS_ERROR_CONNECTION_REFUSED while navigating to http://localhost:8000 #2450
Comments
Thanks for reporting @sylvesteraswin. I was able to repro this on firefo – but only when there's nothing running on localhost:8000. If I run something on localhost:8000, it works for me. Could there be something different about your network configuration? |
Yea it was issue on windows so I had to switch to chromium lol last week. |
@arjun27, sorry for the late reply. I kinda found the root cause. These are the issues I faced. Dev env
ChromiumEverything seem to be good WebkitThe FirefoxThe initial load of the browser is always Prod setup
All browsers seem to work as expected and I don't get any errors. So I am guessing either there is some issue with |
Looks like the issue was not on the Playwright side, so closing. @sylvesteraswin, did I understand this right? |
@pavelfeldman like 1 month ago there was a issue when we open any link using juggler it would close the browser and throw error like NS_ERROR_CONNECTION_REFUSED. The strange thing is I made in osx and it was working fine but when i ported to windows pc it started showing this. And I had to change it to chromium which worked fine. I do think this issue is fixed already. so we can close issue and if they are still having issue can reopen? |
I'm using Windows 11 Pro 22H2. I got the error for the first run:
This is the second run:
|
@gokhantaskan how did you solve it? |
I am also getting the same problem on Windows/Firefox. Rerunning the test cases doesn't seem to solve the issue. |
Same issue on Windows + Firefox for component tests. I was unable to find a fix so I had to remove Firefox from my tests 😞 |
I noticed if you turn off headless mode, run in debug mode and break at the page.goto line. Stepping through the goto command to ensure the page is loaded. Then the following executions will work. |
What I did was reduced the parallel test workers from default to 5. That did the trick. |
But Why? |
Hey. Sorry not for including my reasoning behind that, and it's good that you asked about it. So kudos to you buddy! While dealing with this issue, I noticed that my development machine was struggling with performance. My hypothesis was that it was under so much stress that I couldn’t serve the tests quickly enough before the testing platform timed out. After reducing the number of parallel workers, the issue disappeared, so there seems to be some truth to that. |
Context:
Code Snippet
Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:
Describe the bug
When I try to open a localhost url in firefox I always get
Error: NS_ERROR_CONNECTION_REFUSED while navigating to http://localhost:8000
.I am running
webkit
andchromium
in the same process and it works as expected.Add any other details about the problem here.
The text was updated successfully, but these errors were encountered: