-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(integ-tests-alpha): invokeFunction is returning Uint8ArrayBlobAdapter each time versus converting to String or JSON object #27395
Comments
I debugged the provider lambda and it seems that the lambda invoke So the logic introduced #27122 won't work specifically this if statement: aws-cdk/packages/@aws-cdk/integ-tests-alpha/lib/assertions/providers/lambda-handler/utils.ts Line 3 in 0bb49b4
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. |
thanks, we're working on a fix #27313 |
|
1 similar comment
|
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: