aws-sdk-kotlin icon indicating copy to clipboard operation
aws-sdk-kotlin copied to clipboard

Route53 Custom Error Unmarshalling

Open kggilmer opened this issue 4 years ago • 2 comments

ChangeResourceRecordSets uses a custom error format: aws/aws-sdk-go@3265860

internal id: 176558794

kggilmer avatar Mar 04 '21 01:03 kggilmer

The error response for InvaildChangeBatch doesn't match the normal format expected for restXml errors. From the Go v2 SDK tests, sample InvalidChangeBatch response:

<?xml version="1.0" encoding="UTF-8"?>
<InvalidChangeBatch xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
  <Messages>
    <Message>Tried to create resource record set duplicate.example.com. type A, but it already exists</Message>
  </Messages>
  <RequestId>b25f48e8-84fd-11e6-80d9-574e0c4664cb</RequestId>
</InvalidChangeBatch>

Sample "normal" error response:

<?xml version="1.0"?>
<ErrorResponse xmlns="http://route53.amazonaws.com/doc/2016-09-07/">
  <Error>
    <Type>Sender</Type>
    <Code>MalformedXML</Code>
    <Message>1 validation error detected: Value null at 'route53#ChangeSet' failed to satisfy constraint: Member must not be null</Message>
  </Error>
  <RequestId>b25f48e8-84fd-11e6-80d9-574e0c4664cb</RequestId>
</ErrorResponse>

The customization seems simple enough (sample Go v2 SDK implementation).

Estimation: 2 weeks

ianbotsf avatar Jun 04 '21 22:06 ianbotsf

This is a very old issue that is probably not getting as much attention as 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 provide a comment or open a new issue.

github-actions[bot] avatar Jul 08 '22 18:07 github-actions[bot]

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jul 17 '23 15:07 github-actions[bot]