aws / aws/aws-xray-sdk-node

Outgoing https calls incorrectly resolving to localhost ECONNREFUSED 127.0.0.1:443

Open
#438 3 comments 2 reactions 1 assignee Claimed by @willarmiros View on GitHub
bug
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
![Screenshot 2021-06-08 at 17 34 51](https://user-images.githubusercontent.com/1790730/121223900-eac34680-c87f-11eb-9ac9-080eb5602f0b.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.