Skip to content
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

fix awsjson error deserialization to not expect string code #2489

Merged
merged 4 commits into from
Feb 15, 2024

Conversation

lucix-aws
Copy link
Contributor

@lucix-aws lucix-aws commented Feb 12, 2024

Fixes json-body error code deserialization to not strictly expect any Code field to be a string.

In practice I've essentially split the jsonrpc protocols away from using the static aws/protocols/restjson.GetErrorInfo, they have a new implementation which is used instead.

The isolation to jsonrpc was to mitigate behavioral impact, it's also not clear to me whether this weird dichotomy between code and __type applies the same for the REST side. We can update it globally if we'd rather do so.

Closes #2476

@lucix-aws lucix-aws requested a review from a team as a code owner February 12, 2024 23:33
@lucix-aws lucix-aws merged commit a264562 into main Feb 15, 2024
11 of 12 checks passed
@lucix-aws lucix-aws deleted the fix-awsjson-errors branch February 15, 2024 16:18
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.

Cloud9 NotFoundException deserialization error
3 participants