-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
s3control/GetStorageLensConfiguration: UnmarshalError: failed to unmarshal error message
#4577
Comments
Other Storage Lens APIs exhibit the same behavior:
|
Hi @ewbankkit , Thanks for opening this. This issue is happening because the s3control service returns the error in an unwrapped format. <Error>
<Code>ActivityMetricsMustEnabled</Code>
<Message>Activity metrics must be enabled when it is requested</Message>
<RequestId>REDACTED</RequestId>
<HostId>REDACTED=</HostId>
</Error> The top level xml tag should be Should be: <ErrorResponse>
<Error>
<Code>ActivityMetricsMustEnabled</Code>
<Message>Activity metrics must be enabled when it is requested</Message>
<RequestId>REDACTED</RequestId>
<HostId>REDACTED</HostId>
</Error>
</ErrorResponse>
The SDK is not expecting this top level tag, and is hitting this serialization error. I will cut a ticket to the s3control service team in hopes of getting this fixed. Thanks for your engagement!
|
Hi @ewbankkit , Can you please let us know if this is an issue on v2 SDK so we may prioritize this? Thanks, |
Comments on closed issues are hard for our team to see. |
Describe the bug
When attempting to deserialize the error response from an S3 Control
GetStorageLensConfiguration
API call the Go SDK hits an umarshaling error:Expected Behavior
A correctly formed
NoSuchConfiguration
error should be returned from the API call.Current Behavior
The API call goes into a (25 iteration) retry loop.
Reproduction Steps
GetStorageLensConfiguration
call specifying the ID of the configuration created abovePossible Solution
No response
Additional Information/Context
No response
SDK version used
1.44.110
Environment details (Version of Go (
go version
)? OS name and version, etc.)go version go1.18.4 darwin/amd64
The text was updated successfully, but these errors were encountered: