-
Notifications
You must be signed in to change notification settings - Fork 671
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
Cloud9 NotFoundException
deserialization error
#2476
Comments
Hi @ewbankkit , Thanks for reaching out. I logged the raw response before it gets deserialized by the SDK and it looks like this:
As you can see, two separate sets of errors are being sent, one in the headers and one in the body. Based on the JSON protocol cloud9 uses, the error code should be only specified in the header (string) whereas the service models their I'll raise this internally and see how we can address this. |
The root cause here is that we're making the incorrect assumption that |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
The Cloud9
NotFoundException
error is not being deserialized correctly.A JSON response of
does not return a
types.NotFoundException
, instead at the Go SDK level we getExpected Behavior
Expected
types.NotFoundException
to be returned as a Goerror
.Current Behavior
See above.
Reproduction Steps
Call
cloud9.DescribeEnvironments()
with a non-existent environment ID.Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/service/cloud9 v1.22.7
Compiler and Version used
go version go1.20.10 darwin/amd64
Operating System and version
macOS Ventura 13.6
The text was updated successfully, but these errors were encountered: