-
Notifications
You must be signed in to change notification settings - Fork 342
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
ECONNREFUSED after launching Chrome #2331
Comments
Funny enough, I've been fighting with the same issue for the past few days. Short answer:Using Node.js 17.0.1, I get the same issue. Longer answer:web-ext uses a temporary local extension in %TEMP%, the reload manager. The extension is built on the fly when web-ext is run. The reload manager connects back to the web-ext application using Websockets. web-ext creates a Websocket server on The error message you mention refers to an IPv6 host address used in a URL: Unfortunately, this seems to be only one part of the answer. I tried to fix the extension, hardcoding I tried to build web-ext myself but got an error using Node 17. I tried with Node 15 and Node 16, both worked fine. Then I tried to use Node 16 to run web-ext, this also worked. Since using Node.js 16 works fine, I will not investigate this issue further but wanted to share my findings. |
So there are two problems here:
-- const client = net.createConnection(this.port);
++ const client = net.createConnection(this.port, '127.0.0.1'); |
Here is the build issue of Webpack: |
Seems that there is a similar issue for adb. I have to pass |
See also: GoogleChrome/chrome-launcher#251 |
Can't reproduce with web-ext@6.6.0 |
Is this a feature request or a bug?
Bug.
What is the current behavior?
web-ext run
.What is the expected or desired behavior?
No error.
Version information (for bug reports)
There is an error in the background page of web-ext reload manager:
The text was updated successfully, but these errors were encountered: