koichik / node-tunnel

Node HTTP/HTTPS Agents for tunneling proxies
MIT License
537 stars 78 forks source link

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

Open jg572h opened 3 years ago

jg572h commented 3 years ago

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.