bundle-wizard icon indicating copy to clipboard operation
bundle-wizard copied to clipboard

Error: connect ECONNREFUSED ::1:1197

Open Flixbox opened this issue 3 years ago • 6 comments

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

Flixbox avatar Sep 04 '22 13:09 Flixbox

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

kevinpastor avatar Sep 20 '22 22:09 kevinpastor

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
}

firatgh avatar Nov 16 '22 13:11 firatgh

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

akaltar avatar Nov 26 '22 18:11 akaltar

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.

unleashit avatar Jun 01 '23 21:06 unleashit

PR created at https://github.com/aholachek/bundle-wizard/pull/44 which hopefully does the job.

JamieMason avatar Jun 02 '23 15:06 JamieMason

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

prantlf avatar Nov 26 '23 13:11 prantlf