Comments (18)
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.
from local-ssl-proxy.
For me downgrading to Node v14.18.2
from Node 17
solved this issue
from local-ssl-proxy.
Hi, I'm having error "Request failed to proxy: ECONNREFUSED" on Node 17.3
It works fine on 16.13.1
from local-ssl-proxy.
I've released v2.0.1
, which I've tested works on all LTS versions of node – I hope this resolves the issue.
from local-ssl-proxy.
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 side local-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem
Im using node 16
from local-ssl-proxy.
I ran into this and the cause was that I didn't specify a --hostname
in the local-ssl-proxy
command, since I wasn't using localhost
.
from local-ssl-proxy.
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
from local-ssl-proxy.
I am also having this issue running Node 17.8.0. Downgrading to 16.13.0 resolved it.
from local-ssl-proxy.
+1. Same problem here.
from local-ssl-proxy.
Can confirm, unfortunately. I am having the same issue.
from local-ssl-proxy.
+1
from local-ssl-proxy.
Sorry for my late reply. My notebook was in maintenance.
Sorry, I don't use Windows.
I tried again with a React app, and I got this output on Google Chrome.
from local-ssl-proxy.
Hi, has anyone figured out the source of this issue?
It was working for me yesterday but now fails today (so I doubt that changing the version of node is the solution).
Upon restarting my computer, it now works.
So my guess is that it's an issue with the proxy not being killed properly at some point.
I'll need to test this theory next time I face this issue, but this command should technically work.
lsof -n -i4TCP:{YOUR_PORT}
from local-ssl-proxy.
I am having the same issue, when I try accessing the URL I get the error Request failed to proxy: ECONNREFUSED
I have Node verion 17.2.0
from local-ssl-proxy.
This still happens to me on all the node versions listed so far.
from local-ssl-proxy.
Just a note for myself and anyone else who may be having this error, in my case I needed to explicitly set the PORT
that my target app was running at.
from local-ssl-proxy.
Make sure that your application server is running on the target port.
eg. (local-ssl-proxy --source 3001 --target 3000) & next dev --port 3000
from local-ssl-proxy.
Related Issues (20)
- Websockets on iOS Safari HOT 2
- Browsers not trust the certificate HOT 3
- Arbitrary Code Execution in underscore via a transitive dependency on nomnom HOT 1
- Install Fails With "Command not found" ... But Other Packages Install Fine? HOT 3
- Certificate expires on 11 January 2023 HOT 1
- Request failed to proxy: ECONNREFUSED Node.js 18 HOT 2
- Security vulnerability in nomnom dependency HOT 1
- missing release notes HOT 2
- config requires all parameters, including `key` and `cert` params HOT 3
- 127.0.0.1 refused HOT 3
- Store certificate globally
- Proxy headers HOT 1
- ERR_CERT_AUTHORITY_INVALID HOT 1
- npmjs has an old readme
- Feature Request : Multiple domain proxied
- ECONNREFUSED after target system is shut down and restarted
- Error on install HOT 1
- Make a proxy with Custom DNS HOT 3
- Lets encrypt certificate instead of the self signed one HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from local-ssl-proxy.