-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[http] request does not accept host encapsulated within square brackets #39738
Comments
The square bracket characters ( |
I don't think this is a bug. This is one of the reasons why |
Verified that this issue was discussed in the past in #34349, and was resolved by exposing |
Version
Platform
Subsystem
http
What steps will reproduce the bug?
Note: This bug should ideally be Node.js version and platform independent.
To reproduce, run the following code:
Code
Output
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
The
http.request
should accepthost
encapsulated within square brackets.What do you see instead?
The
http.request
internally calls getaddrinfo for host with square brackets, and gets ENOTFOUND error in return.Additional information
This issue was noticed while testing IPv6 endpoints in AWS SDK for JavaScript in aws/aws-sdk-js-v3#2660
The text was updated successfully, but these errors were encountered: