diff --git a/src/aleph/sdk/client/authenticated_http.py b/src/aleph/sdk/client/authenticated_http.py index da7f80f7..dda7de35 100644 --- a/src/aleph/sdk/client/authenticated_http.py +++ b/src/aleph/sdk/client/authenticated_http.py @@ -215,7 +215,7 @@ async def _broadcast_deprecated(self, message_dict: Mapping[str, Any]) -> None: async with self.http_session.post( url, - json={"topic": "ALEPH-TEST", "data": json.dumps(message_dict)}, + json={"topic": "ALEPH-TEST", "data": json.dumps(message_dict, default=extended_json_encoder)}, ) as response: await self._handle_broadcast_deprecated_response(response) @@ -678,7 +678,7 @@ async def _storage_push_file_with_message( "sync": sync, } data.add_field( - "metadata", json.dumps(metadata), content_type="application/json" + "metadata", json.dumps(metadata, default=extended_json_encoder), content_type="application/json" ) # Add the file data.add_field("file", file_content)