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(smithy-client): optional param in error handling path #4410

Merged
merged 1 commit into from
Feb 23, 2023
Merged

fix(smithy-client): optional param in error handling path #4410

merged 1 commit into from
Feb 23, 2023

Conversation

krosenk729
Copy link
Contributor

Issue

Additional fix for #2861

Description

After the fix for #2861 was merged, we are getting TypeError: Cannot read properties of undefined (reading 'code') at throwDefaultError (/usr/src/service/node_modules/@aws-sdk/client-sqs/node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js:9:26) because parsedBody can be undefined now

Testing

codegen and CI


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@krosenk729 krosenk729 requested review from a team as code owners February 6, 2023 21:55
@krosenk729
Copy link
Contributor Author

@trivikr I think you reviewed #4367 so may have context on this. let me know if there is anything I need to do process-wise to get eyes on this. thanks!

@Drarig29
Copy link

Drarig29 commented Feb 20, 2023

@krosenk729 looking at #4367, I think what's actually required to fix is the Java code for the codegen (example).

cc. @kuhe as you made #4367.

@Drarig29
Copy link

(we also noticed this new issue, following the fix for #2861)

@kuhe
Copy link
Contributor

kuhe commented Feb 23, 2023

this file is not generated, so this fix can be merged as-is

@trivikr trivikr changed the title fix(codegen): optional param in error handling path fix(smithy-client): optional param in error handling path Feb 23, 2023
@trivikr trivikr merged commit df945f5 into aws:main Feb 23, 2023
@Suvab-rently
Copy link

Suvab-rently commented Mar 2, 2023

Hi there, is this fix released?

I am using "@aws-sdk/client-sqs": "^3.43.0",

To integrate a fix for this and #2861, which version shall I integrate?

@Drarig29
Copy link

Drarig29 commented Mar 2, 2023

This fix was released in v3.279.0.

And #2861 was released earlier (in v3.261.0).

So ^v3.279.0 (at least) should fix both issues 😉

@Suvab-rently
Copy link

Thanks @Drarig29 !

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants