diff --git a/setup.cfg b/setup.cfg index 00caba2c..ca39e9ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,7 @@ install_requires = eciespy>=0.3.13; python_version>="3.11" typing_extensions typer - aleph-message==0.4.0 + aleph-message==0.4.1 eth_account>=0.4.0 # Required to fix a dependency issue with parsimonious and Python3.11 eth_abi==4.0.0b2; python_version>="3.11" diff --git a/src/aleph/sdk/client/authenticated_http.py b/src/aleph/sdk/client/authenticated_http.py index da7f80f7..d8e3fa94 100644 --- a/src/aleph/sdk/client/authenticated_http.py +++ b/src/aleph/sdk/client/authenticated_http.py @@ -215,7 +215,10 @@ 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 +681,9 @@ 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)