RestXml error members are not always modeled correctly #479
Labels
bug
This issue is a bug.
codegen
help wanted
We are asking the community to submit a PR to resolve this issue.
no-auto-closure
We do not want this issue to be automatically closed.
p2
This is a standard priority issue
Describe the bug
The
Message
member of errors in smithy needs special casing.As an example the STS InvalidIdentityTokenException has a member
message
but the actual response that comes back looks like this:Note the capitalization of
Message
vs the modelmessage
.Expected behavior
InvalidIdentityTokenException.message
should contain the message from the response.Current behavior
Today the message field is correctly parsed by the XML error response deserializer responsible for figuring out error code and other metadata before we parse the specific exception type.
This gets stashed into the
sdkErrorMetadata
so it is available with some digging, e.g.:Ideally though it should also be parsed by the
InvalidIdentityTokenException
deserializer.Steps to Reproduce
Try to call
assumeRoleWithWebIdentity
using a JWT without having configured an OIDC provider in your account.Possible Solution
No response
Context
No response
AWS Kotlin SDK version used
0.9.5-beta
Platform (JVM/JS/Native)
JVM
Operating System and version
macos
The text was updated successfully, but these errors were encountered: