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.
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 torequest
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.