Outgoing https calls incorrectly resolving to localhost ECONNREFUSED 127.0.0.1:443
- Dominant language
- JavaScript
- Stars
- 280
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
Using node v12.18.2 and v14.16.0
Version 3.2.0 is unaffected
Version 3.3.3 is affected on mac and linux, but seems okay on windows.
All https calls are resolving to localhost resulting in
connect ECONNREFUSED 127.0.0.1:443
The xray trace itself has the right host set, but can also see the incorrect localhost

Spotted whilst using the sns-validator module https://github.com/aws/aws-js-sns-message-validator/blob/master/index.js#L106
https = require('https'),
https.get(certUrl
Fails with connect ECONNREFUSED 127.0.0.1:443
Where certUrl is a string like "https://sns.eu-west-2.amazonaws.com/SimpleNotificationService-xxxx.pem"
Looks semi-related to the following issue:
https://github.com/aws/aws-xray-sdk-node/issues/240
Contributor guide
Assessment
This issue has not been assessed yet.