Skip to content

Commit dd07ed5

Browse files
author
Bob Strahan
committed
Fix JSON serialization in AppSyncClient by adding default=str parameter
1 parent 57b6498 commit dd07ed5

File tree

1 file changed

+1
-1
lines changed
  • lib/idp_common_pkg/idp_common/appsync

1 file changed

+1
-1
lines changed

lib/idp_common_pkg/idp_common/appsync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def execute_mutation(
9393
request = AWSRequest(
9494
method="POST",
9595
url=self.api_url,
96-
data=json.dumps(data).encode(),
96+
data=json.dumps(data, default=str).encode(),
9797
headers={
9898
"Content-Type": "application/json",
9999
"Accept": "application/json",

0 commit comments

Comments
 (0)