-
Notifications
You must be signed in to change notification settings - Fork 863
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
IMDS returns SdkClientException on 4XX errors, but reading autoscaling lifecycle state can return 404. #5786
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Comments
benjumanji
added
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
labels
Jan 9, 2025
@benjumanji do you have a stacktrace for the specific exception you have in mind? |
debora-ito
added
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jan 14, 2025
Do you mean a stack trace illustrating the question? Or the stack trace I would like to have in the future? Assuming it is the former:
Note that this is an |
github-actions
bot
removed
the
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
label
Jan 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
IMDS client should return SdkServiceException when an http request is returned from the service. It's use of SdkClientException doesn't match the description in the docs: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/handling-exceptions.html#sdkclientexception, to wit:
A request that recieves a response cannot be a client exception. It made the call, the service rejected it.
Use Case
IMDS client returns SdkClientExceptions unconditionally on 4XX errors (
aws-sdk-java-v2/core/imds/src/main/java/software/amazon/awssdk/imds/internal/AsyncHttpRequestHelper.java
Line 89 in 7eae4d8
Proposed Solution
Return an SdkServiceException any time there is an actual service response.
Other Information
No response
Acknowledgements
AWS Java SDK version used
2
JDK version used
17
Operating System and version
linux 6.11 (nixos)
The text was updated successfully, but these errors were encountered: