Skip to content

Conversation

@aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Oct 20, 2021

Issue #

fixes #356

Sibling PR: smithy-lang/smithy-kotlin#505

  • Verified that the related complex error tests fail without this codegen change now

Description of changes

Render error deserializer with the wrapped response. Previously the original response was being re-used and the error deserializer was calling response.body.readAll() and getting an empty body because it was already consumed to detect the error code.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@kggilmer kggilmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

easy peasy

@aajtodd aajtodd merged commit 9f9353c into main Oct 21, 2021
@aajtodd aajtodd deleted the fix-error-codegen branch October 21, 2021 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeserializationException on DDB ResourceInUse

3 participants