Errno: -111 ECONNREFUSED port 443

Hello,

I was attempting to build a couple of starter websites with prismic.io. I keep running into the same errno: -111 having todo with port 443. I tried both nuxt and next.

I saw a post earlier mention this and it having todo with ssl certificates. I attempt the fix with a .prismicrc hidden file with telemetry=false and I still get the error. I assume because that user errno: -63 and mine is -111 that its similar but for something else.

I’m using wsl to run prismic from.

Impacted feature:

Publishing the website, I assume because I get this errno: -111 is the reason why I can’t publish my pages as well.

What steps have you taken to resolve this issue already?

I followed an earlier post about a similar issue.

Errors

errno: -111

\[Experiment\] Fetch failed:  AggregateError \[ECONNREFUSED\]:
at internalConnectMultiple (node:net:1134:18)
at afterConnectMultiple (node:net:1715:7) {
code: 'ECONNREFUSED',
\[errors\]: \[
Error: connect ECONNREFUSED 0.0.0.0:443
at createConnectionError (node:net:1678:14)
at afterConnectMultiple (node:net:1708:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '0.0.0.0',
port: 443
},
Error: connect ECONNREFUSED :::443
at createConnectionError (node:net:1678:14)
at afterConnectMultiple (node:net:1708:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::',
port: 443
}
\]
}

Your Role

Technical Role

Hosting provider

self hosted

Package.json file

"scripts": {
"dev": "concurrently "npm:nuxt:dev" "npm:slicemachine" --names "nuxt,slicemachine" --prefix-colors green,mage>    "nuxt:dev": "nuxt dev",
"build": "nuxt build",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"slicemachine": "start-slicemachine",
"lint": "eslint ."
},
"dependencies": {
"@fontsource/inter": "^5.2.6"
},
"devDependencies": {
"@nuxt/eslint": "^1.5.2",
"@nuxtjs/prismic": "^4.1.0",
"@nuxtjs/tailwindcss": "^6.14.0",
"@slicemachine/adapter-nuxt": "^0.3.83",
"@tailwindcss/aspect-ratio": "^0.4.2",
"concurrently": "^9.2.0",
"eslint": "^9.31.0",
"nuxt": "^4.0.0",
"slice-machine-ui": "^2.18.1"
}
}

Steps to reproduce

npx @slicemachine/init@latest --repository preston-harvery-nuxt --starter nuxt-starter-prismic-multi-page

then after step Initialized adapter. I get Experiment Fetch Failed: AggregateError [ECONNREFUSED]:

at internalConnectMultiple (node:net:1134:18)
at afterConnectMultiple (node:net:1715:7) {
code: 'ECONNREFUSED',

Thanks

Hey @prestonharveybusines,

Welcome to the community! Sorry you’ve been running into this.

We haven’t had any reports of this happening, so I feel like it could be a network issue on your end. We had another user mention this in a similar error:

The issue turned out to be caused by Cloudflare Warp client blocking my API calls from terminal.

Could you have a look that way?

It otherwise could be a hosts/AdBlock entry (on WSL or Windows) mapping one of Prismic’s domains (e.g. prismic.io, sm-api.prismic.io, *.cdn.prismic.io, *.prismicio.app) to 0.0.0.0, or an environment/npm proxy is set to 0.0.0.0 (or another unreachable host). That’s why Node shows address: '0.0.0.0', port: 443 and immediately refuses. Does that ring any bells?