Skip to content

Commit cbdcd2b

Browse files
committed
Use extended_json_encoder when dumping message contents everywhere
1 parent 47a120a commit cbdcd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/sdk/client/authenticated_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ async def _broadcast(
260260

261261
async with self.http_session.post(
262262
url,
263-
json={"sync": sync, "message": message_dict},
263+
json={"sync": sync, "message": json.dumps(message_dict, default=extended_json_encoder)},
264264
) as response:
265265
# The endpoint may be unavailable on this node, try the deprecated version.
266266
if response.status in (404, 405):

0 commit comments

Comments
 (0)