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
So response["shardblk"]["shard"] is indeed not an integer, at least not a decimal one.
I would be grateful if someone can help/share the experience with it.
@nessshon I'm also happy to make a PR, but I'm not quite sure how we should fix it.
The text was updated successfully, but these errors were encountered:
vladimir-chernykh
changed the title
Wrong received int type in liteserver get_account_state
Wrong received int type in liteserver.get_account_stateApr 24, 2024
@vladimir-chernykh, Thank you for your contribution! Indeed, it was found that in the documentation, the shardblk.shard schema specifies the data type as str instead of the expected int. It will be corrected in the next update.
Hi!
I try to get the raw account state using liteserver method as follows:
And I get the following error:
I'm pretty sure this error stems from
int
annotation here:pytonapi/pytonapi/schema/liteserver.py
Line 8 in 960e574
I tried to do the simple HTTP request without Pydantic response parsing like that:
and get the following response
So
response["shardblk"]["shard"]
is indeed not an integer, at least not a decimal one.I would be grateful if someone can help/share the experience with it.
@nessshon I'm also happy to make a PR, but I'm not quite sure how we should fix it.
The text was updated successfully, but these errors were encountered: