Skip to content

Outgoing https calls incorrectly resolving to localhost ECONNREFUSED 127.0.0.1:443 #438

@jamesacres

Description

@jamesacres

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
Screenshot 2021-06-08 at 17 34 51

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:
#240

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions