bug: DynamoDB Streams with Byte property crashes Lambda #8952
Labels
aws:dynamodbstreams
AWS DynamoDB Streams
aws:lambda
AWS Lambda
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
Given I create a DynamoDB Table with DynamoDB streams enabled.
When I PUT an item into that table having a Byte attribute (B)
And the Lambda plugged into that stream triggered.
Then I see a JSON encoding for the Byte attribute instead of a Base64 string
Expected Behavior
Given I create a DynamoDB Table with DynamoDB streams enabled.
When I PUT an item into that table having a Byte attribute (B)
And the Lambda plugged into that stream triggered.
Then I see a Base64 string attribute corresponding to the Byte attribute
Note that this is the expected behavior on AWS.
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
docker compose up
Environment
Anything else?
When I enable debug mode with DEBUG=1, I can the following on localstack 2.2.0:
Below is a JSON item example:
The problem here is that
"B": "VGhpc0lzQVRlc3Q="
is getting sent as a string JSON:\"\\n\\tFantastic\\u0012\\u0004feed\\u001a\\bmagnetic\\\"\\blavender*\\u0013309333887045...
The text was updated successfully, but these errors were encountered: