local-ssl-proxy: Request failed to proxy: ECONNREFUSED
This package don’t run.
$ local-ssl-proxy --source 9001 --target 9000
Started proxy: https://localhost:9001 → http://localhost:9000 Request failed to proxy: ECONNREFUSED
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 12
- Comments: 17 (1 by maintainers)
NODE_OPTIONS=--dns-result-order=ipv4first npx local-ssl-proxy -s 9000 -t 3000
is working for me 🎉 Those of you mentioning Node 17 reminded me of that breaking change to the network stack in that version, I have no idea why it would be an issue in this package but I was able to repro over and over on my machine at least.
For me downgrading to
Node v14.18.2
fromNode 17
solved this issueI’ve released
v2.0.1
, which I’ve tested works on all LTS versions of node – I hope this resolves the issue.Hi, I’m having error “Request failed to proxy: ECONNREFUSED” on Node 17.3 It works fine on 16.13.1
I ran into this and the cause was that I didn’t specify a
--hostname
in thelocal-ssl-proxy
command, since I wasn’t usinglocalhost
.Just wanted to make a quick update, but make sure you’re running the commands for the source and target. I ran into where the source (local-ssl-proxy) was running, but the target (dev server on localhost) was not. I am using nextjs and just needed to run
npm run dev
along sidelocal-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem
Im using node 16
I am also having this issue running Node 17.8.0. Downgrading to 16.13.0 resolved it.
How do you get the error? What happens when you browse to this address using Google chrome? It should give you the “not safe” screen warning. What is the platorm you are using? Any details on that? Im running windows