Skip to content

Commit f85be1c

Browse files
authored
Improved support for storing more data types in datasets (#62)
1 parent 93d192f commit f85be1c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Changelog
99
- added the `test()` method to the webhook client
1010
- added support for indicating the pagination direction in the `ListPage` objects
1111

12+
### Changed
13+
14+
- improved support for storing more data types in datasets
15+
1216
[0.2.0](../../releases/tag/v0.2.0) - 2021-08-09
1317
-----------------------------------------------
1418

src/apify_client/_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def call(
5252
headers = {}
5353

5454
if json and not data:
55-
data = jsonlib.dumps(json, ensure_ascii=False).encode('utf-8')
55+
data = jsonlib.dumps(json, ensure_ascii=False, default=str).encode('utf-8')
5656
headers['Content-Type'] = 'application/json'
5757

5858
if isinstance(data, (str, bytes, bytearray)):

0 commit comments

Comments
 (0)