You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey I'm using the import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha'; for writing some integration tests. I'm trying to invoke a lambda function and then check the response payload that it sends back but seems the payload sent back is always of Uint8ArrayBlobAdapter instead of a string or JSON object.
I debugged the provider lambda and it seems that the lambda invoke response.Payload is returning an object of type Uint8Array versus Uint8ArrayBlobAdapter as defined in aws sdk docs
So the logic introduced #27122 won't work specifically this if statement:
Could this be related to the default version of the AWS SDK V3 in the lambda runtime? If this link is up to date seems SDK 3.188.0 which doesn't have this change of Uint8ArrayBlobAdapter.
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.
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.
Describe the bug
Hey I'm using the
import { IntegTest, ExpectedResult } from '@aws-cdk/integ-tests-alpha';
for writing some integration tests. I'm trying to invoke a lambda function and then check the response payload that it sends back but seems the payload sent back is always of Uint8ArrayBlobAdapter instead of a string or JSON object.At a high level gist.
CDK Version:
2.99.1
Expected Behavior
Be able to check the Payload and validate its the expected response in String or JSON format
Current Behavior
From the logs I see the following coming back to the lambda
For now I'm just gonna fail the lambda :sad
Reproduction Steps
Possible Solution
No response
Additional Information/Context
aws/aws-sdk-js-v3#2252 (comment) is interesting regarding Uint8ArrayBlobAdapter
CDK CLI Version
2.99.1
Framework Version
2.99.1
Node.js Version
v18.15.0
OS
mac
Language
Typescript
Language Version
~5.1.0
Other information
The text was updated successfully, but these errors were encountered: