CloudFront.getDistribution returns uppercase value for HttpVersion
Confirm by changing [ ] to [x] below to ensure that it's a bug:
- [x] I've gone though Developer Guide and API reference
- [x] I've checked AWS Forums and StackOverflow for answers
- [x] I've searched for previous similar issues and didn't find any solution
Describe the bug CloudFront getDistribution returns uppercase value for HttpVersion, docs show this should be impossible and state the possible values are "http1.1" or "http2".
Is the issue in the browser/Node.js? Both
If on Node.js, are you running this on AWS Lambda? N/A
Details of the browser/Node.js version N/A
SDK version number 2.569
To Reproduce (observed behavior) Create a HTTP2 CloudFront distribution and call getDistribution on it. The response will show "HTTP2".
Expected behavior The response should be "http2" as per the docs.
Screenshots N/A
Additional context Discovered via https://github.com/iann0036/former2/issues/32
Hey @iann0036,
Thank-you for reaching out to us with your issue, can you please confirm how you are using the create distribution? Do you specify the httpVersion in it?
Hi @ajredniwja
The one I tested with was created in the console, however I doubt the way it was created would make a difference.
Hey @iann0036
I wanted to check if it happens when you use SDK to make a request however this is not necessarily a bug with the SDK since SDK returns the response that is provided by the service team.
I can reach out to the service team and update you once I hear back from them.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
Bump. Awaiting response from service team.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
Bump. Awaiting response from service team.
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.
Bump. Awaiting response from service team.
Apologies for the prolonged delay in responding. Upon further investigation, it appears that the observed behavior is related to the CloudFront service rather than the AWS SDK. Since the service team has been notified about this issue and there are no outstanding action items for the SDK team, I will proceed with closing this issue. However, please feel free to reach out directly to the service team via AWS Support if you need further assistance.