-
Notifications
You must be signed in to change notification settings - Fork 603
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
LambdaClient InvokeCommand response is missing StatusCode #2021
LambdaClient InvokeCommand response is missing StatusCode #2021
Comments
Can confirm I just hit this and is still an issue with latest version of the sdk. |
Seems to be a deserialization issue
its under investigation already, I will discuss with the team for a possible fix to be made soon. |
Hey @thekiwi @ajredniwja this turns out to be an issue with the SDK generator. I pushed a fix in the linked PRs. Thank you a lot for bringing this up! |
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. |
Describe the bug
When executing the LambdaClient
send()
with anInvokeCommand
, the response returned does not include theStatusCode
field. The TypeScript definitions suggest it should (and SDK v2 did include it)Your environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
v12.13.1
Steps to reproduce
Code snippet:
Observed behavior
Here is the output of the above code:
You can see it has no
StatusCode
field at the root level.Expected behavior
According to the TypeScript definition of InvocationResponse and the API documentation I expect the response payload to include a
StatusCode
field containing the same as$metadata.httpStatusCode
.Additional context
Tried with both the 'legacy'
Lambda
class and the newerLambdaClient
class, both have the same result.The text was updated successfully, but these errors were encountered: