Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

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

@jg572h

Description

@jg572h

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions