Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 4d7fa78

Browse files
committed
Fixing json encoding
1 parent c2a4455 commit 4d7fa78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • localstack-core/localstack/services/dynamodb

localstack-core/localstack/services/dynamodb/provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ def transact_write_items(
13271327
for key in ["Put", "Update", "Delete","ConditionCheck"]:
13281328
inner_item: Put | Delete | Update = item.get(key)
13291329
if inner_item:
1330-
# We formar ARN to just the table name because currently DynamoDB Local does not support
1330+
# We format ARN to just the table name because currently DynamoDB Local does not support
13311331
# ARN for table name: https://github.com/awslabs/amazon-dynamodb-local-samples/issues/34
13321332
inner_item["TableName"] = inner_item["TableName"].split(":table/")[-1]
13331333
table_name = inner_item["TableName"]
@@ -1360,7 +1360,7 @@ def transact_write_items(
13601360
#We modify the request so it matches the TransactItem object formatted.
13611361
data = json.loads(context.request.data)
13621362
data["TransactItems"] = transact_items
1363-
context.request.data = to_bytes(json.dumps(data))
1363+
context.request.data = to_bytes(json.dumps(data, cls=BytesEncoder))
13641364

13651365
if existing_items_to_fetch:
13661366
existing_items = ItemFinder.find_existing_items(

0 commit comments

Comments
 (0)