kin-labs / kinetic

MIT License
40 stars 24 forks source link

BUG: Use of float for kin amount in python causes 500 errors #582

Open mocolicious opened 9 months ago

mocolicious commented 9 months ago

Use of float for kin amount in python causes 500 errors.

Found by @geoffwhittington using the python SDK

File "/home/geoff/projects/perk_payments/backend/.pyenv/lib/python3.10/site-packages/kinetic_sdk/generated/client/rest.py", line 306, in POST return self.request( File "/home/geoff/projects/perk_payments/backend/.pyenv/lib/python3.10/site-packages/kinetic_sdk/generated/client/rest.py", line 238, in request raise ServiceException(http_resp=r) kinetic_sdk.generated.client.exceptions.ServiceException: Status Code: 500 Reason: Internal Server Error HTTP response headers: HTTPHeaderDict({'Content-Length': '52', 'Content-Type': 'application/json; charset=utf-8', 'Date': 'Wed, 31 Jan 2024 04:57:54 GMT', 'ETag': 'W/"34-rlKccw1E+/fV8niQk4oFitDfPro"', 'Vary': 'Origin', 'X-Powered-By': 'Express'}) HTTP response body: {"statusCode":500,"message":"Internal server error"}