Skip to content
Discussion options

You must be logged in to vote

the issue is that AWS X-Ray SDK (which CloudWatch Synthetics uses) doesn't properly extract the hostname when got passes a URL object as the first argument to http.request().

got calls http.request(url, options) with a URL object as the first arg (line 1227 in source/core/index.ts), but AWS X-Ray's hostname extraction logic expects options.hostname or options.host to be set in the options object itself.

this is an AWS X-Ray SDK limitation, not a got bug.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants