Coder Social home page Coder Social logo

Comments (18)

coffenbacher avatar coffenbacher commented on August 10, 2024 12

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.

adxy avatar adxy commented on August 10, 2024 6

For me downgrading to Node v14.18.2 from Node 17 solved this issue

from local-ssl-proxy.

dawidjaniga avatar dawidjaniga commented on August 10, 2024 3

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.

cameronhunter avatar cameronhunter commented on August 10, 2024 3

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.

Legym avatar Legym commented on August 10, 2024 2

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.

mpereira avatar mpereira commented on August 10, 2024 2

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.

Toumash avatar Toumash commented on August 10, 2024 1

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.

mrlasers avatar mrlasers commented on August 10, 2024 1

I am also having this issue running Node 17.8.0. Downgrading to 16.13.0 resolved it.

from local-ssl-proxy.

leonardoResendeLima avatar leonardoResendeLima commented on August 10, 2024

+1. Same problem here.

from local-ssl-proxy.

avielmenter avatar avielmenter commented on August 10, 2024

Can confirm, unfortunately. I am having the same issue.

from local-ssl-proxy.

doerme avatar doerme commented on August 10, 2024

+1

from local-ssl-proxy.

francisrod01 avatar francisrod01 commented on August 10, 2024

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.

image

from local-ssl-proxy.

fcisio avatar fcisio commented on August 10, 2024

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.

azhararmar avatar azhararmar commented on August 10, 2024

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.

tayloraucoin avatar tayloraucoin commented on August 10, 2024

This still happens to me on all the node versions listed so far.

from local-ssl-proxy.

sebmellen avatar sebmellen commented on August 10, 2024

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.

bel7aG avatar bel7aG commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.