Skip to content

Commit 2dcece2

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/aleph/sdk/client/authenticated_http.py

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

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

0 commit comments

Comments
 (0)