Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 7 additions & 2 deletions src/aleph/sdk/client/authenticated_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down