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

Error: connect ECONNREFUSED ::1:1197 #40

Open
Flixbox opened this issue Sep 4, 2022 · 6 comments
Open

Error: connect ECONNREFUSED ::1:1197 #40

Flixbox opened this issue Sep 4, 2022 · 6 comments

Comments

@Flixbox
Copy link

Flixbox commented Sep 4, 2022

Hey! About a few seconds after executing the command npx bundle-wizard reddit.com, I receive the following error message:

PS C:\Windows\System32> npx bundle-wizard reddit.com

πŸ§™β€  Welcome to bundle-wizard

πŸ€–  Loading https://reddit.com ...


⚠️  Unable to fetch website data

Error: connect ECONNREFUSED ::1:1197
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
  errno: -4078,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '::1',
  port: 1197
}

Am I doing something wrong? I'm getting the same result with all other URLs.

PS C:\Windows\System32> node -v
v18.8.0
@kevinpastor
Copy link

kevinpastor commented Sep 20, 2022

I have the same issue on [email protected] and [email protected]. I've tried with [email protected] and it's the same.

@firatgh
Copy link

firatgh commented Nov 16, 2022

npx bundle-wizard localhost:3000

Output:

πŸ§™β€  Welcome to bundle-wizard

πŸ€–  Loading http://localhost:3000 ...


⚠️  Unable to fetch website data

Error: connect ECONNREFUSED ::1:51226
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '::1',
  port: 51226
}

@akaltar
Copy link

akaltar commented Nov 26, 2022

Digging around looks like this is an issue in chrome-launcher + Node 17+
A fix for this has been merged, so fixing bundle-wizard should be updating to chrome-launcher 0.14.2+ and adjusting to any breaking behaviour in that release.
Alternatively downgrading to Node 16 might also work for the time being

@unleashit
Copy link

unleashit commented Jun 1, 2023

Same issue.

⚠️  Unable to fetch website data

Error: connect ECONNREFUSED 127.0.0.1:34217
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 34217
}

Without looking too deeply it might be a WSL issue, since WSL sometimes has issues with 127.0.0.1. An option to set the local server hostname could let a WSL user change it to localhost.

@JamieMason
Copy link

PR created at #44 which hopefully does the job.

@prantlf
Copy link

prantlf commented Nov 26, 2023

I get ECONNREFUSED right away with a http://locvalhost website. Using --interactive works. It'd be worth upgrading the ancient dependencies, which #44 aims for

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

Successfully merging a pull request may close this issue.

7 participants