node-tunnel icon indicating copy to clipboard operation
node-tunnel copied to clipboard

Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:443

Open jg572h opened this issue 3 years ago • 0 comments

Using tunnel as https agent for Axios in a Kubernetes pod. Formerly was using the Javascript request package, which worked just fine. Now migrating to Axios due to request being deprecated.

If I don't use an https agent, I get an error about the certificate being expired, but with the https agent, I get the above error about connection refused. I'm guessing this is related to validating the certificate used in HTTPS. I can't track down whether this is a tunnel issue or an Axios issue. If anyone has any suggestions, I'd love to hear them.

jg572h avatar Oct 13 '21 20:10 jg572h