You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use dumps as recommended by the readme with the CreateOrderResponse, getting the following error:
File "/usr/src/app/./cbp-cli.py", line 111, in <module>
order_id = place_order_with_timeout(factor, 2)
File "/usr/src/app/./cbp-cli.py", line 81, in place_order_with_timeout
fprint(dumps(order, indent=2))
~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/json/__init__.py", line 238, in dumps
**kw).encode(obj)
~~~~~~^^^^^
File "/usr/local/lib/python3.13/json/encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.13/json/encoder.py", line 261, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.13/json/encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
f'is not JSON serializable')
TypeError: Object of type CreateOrderResponse is not JSON serializable
The text was updated successfully, but these errors were encountered:
Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).
Trying to use
dumps
as recommended by the readme with theCreateOrderResponse
, getting the following error:The text was updated successfully, but these errors were encountered: