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

web-ext run fails to launch Firefox with ECONNREFUSED error #4

Closed
m3n0l1f3 opened this issue Jan 7, 2024 · 2 comments
Closed

web-ext run fails to launch Firefox with ECONNREFUSED error #4

m3n0l1f3 opened this issue Jan 7, 2024 · 2 comments

Comments

@m3n0l1f3
Copy link
Contributor

m3n0l1f3 commented Jan 7, 2024

> [email protected] prestart:dev
> npm run build:dev


> [email protected] build:dev
> webpack --mode=development

asset background.js 89.8 KiB [compared for emit] (name: background) 1 related asset
asset setting.js 56.7 KiB [compared for emit] (name: setting) 1 related asset
asset setting.html 502 bytes [compared for emit] [from: src/setting.html] [copied]
runtime modules 1.83 KiB 8 modules
cacheable modules 99.5 KiB
  ./src/background.ts 18 KiB [built] [code generated]
  ./src/setting.ts 15.2 KiB [built] [code generated]
  ./node_modules/webextension-polyfill/dist/browser-polyfill.js 37.4 KiB [built] [code generated]
  ./src/github.ts 15.9 KiB [built] [code generated]
  ./src/request.ts 12.9 KiB [built] [code generated]
webpack 5.89.0 compiled successfully in 604 ms

> [email protected] start:dev
> web-ext run --verbose --devtools

[/notifier-extension/node_modules/web-ext/lib/program.js][info] Version: 7.6.2
[/notifier-extension/node_modules/web-ext/lib/program.js][debug] Discovering config files. Set --no-config-discovery to disable
[/notifier-extension/node_modules/web-ext/lib/config.js][debug] Discovered config "/.web-ext-config.js" does not exist or is not readable
[/notifier-extension/node_modules/web-ext/lib/config.js][debug] Discovered config "/notifier-extension/web-ext-config.js" does not exist or is not readable
[/notifier-extension/node_modules/web-ext/lib/program.js][info] Applying config file: ./package.json
[/notifier-extension/node_modules/web-ext/lib/config.js][debug] Loading JS config file: "/notifier-extension/package.json" (resolved to "/notifier-extension/package.json")
[/notifier-extension/node_modules/web-ext/lib/config.js][debug] Looking for webExt key inside package.json file
[/notifier-extension/node_modules/web-ext/lib/config.js][debug] Config file /notifier-extension/package.json did not define any options. Did you set module.exports = {...}?
[/notifier-extension/node_modules/web-ext/lib/cmd/run.js][info] Running web extension from /notifier-extension
[/notifier-extension/node_modules/web-ext/lib/util/manifest.js][debug] Validating manifest at /notifier-extension/manifest.json
[/notifier-extension/node_modules/web-ext/lib/extension-runners/firefox-desktop.js][debug] Creating new Firefox profile
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][debug] Running Firefox with profile at /var/folders/sw/6b_91n296gj6d1yvrknh3yzw0000gn/T/firefox-profilelbixJn/
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][debug] Executing Firefox binary: /Applications/Firefox.app/Contents/MacOS/firefox-bin
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][debug] Firefox args: -start-debugger-server 51169 -foreground -no-remote -profile /var/folders/sw/6b_91n296gj6d1yvrknh3yzw0000gn/T/firefox-profilelbixJn/
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][info] More info about WebExtensions debugging:
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][info] https://extensionworkshop.com/documentation/develop/debugging/
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to the remote Firefox debugger
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/index.js][debug] Firefox closed
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (2); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (3); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (4); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (5); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (6); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (7); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (8); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (9); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Retrying Firefox (10); connection error: Error: connect ECONNREFUSED 127.0.0.1:51169
[/notifier-extension/node_modules/web-ext/lib/firefox/remote.js][debug] Connecting to Firefox on port 51169
@m3n0l1f3
Copy link
Contributor Author

m3n0l1f3 commented Jan 7, 2024

Taking notes on some possible root causes:

Using "Debugger for Firefox" doesn't suffer from ECONNREFUSED issue above...

@m3n0l1f3
Copy link
Contributor Author

m3n0l1f3 commented Jan 7, 2024

Looks like an issue for Firefox 121, mozilla/web-ext#2975 (comment) resolves the issue.

@m3n0l1f3 m3n0l1f3 closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant