Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorect response from blockpi api #154

Open
Northa opened this issue Jul 21, 2022 · 0 comments
Open

Incorect response from blockpi api #154

Northa opened this issue Jul 21, 2022 · 0 comments

Comments

@Northa
Copy link

Northa commented Jul 21, 2022

  1. Noticed that sometimes response from the api returns outdated data. For example

klay_getBalance endpoint. To simulate just send some coins from your wallet and constantly query latest balance

{'jsonrpc': '2.0', 'id': 1, 'result': '0x608de4f743a18c000'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608de4f743a18c000'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608cba89b5906a000'} <-- balance changed
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608cba89b5906a000'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608cba89b5906a000'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608de4f743a18c000'} <-- old balance 
{'jsonrpc': '2.0', 'id': 1, 'result': '0x608cba89b5906a000'}

klay_blockNumber endpoint

{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff610'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff610'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'} <-- new block
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff610'} <-- old block
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff613'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff613'}
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff611'} <-- same thing
{'jsonrpc': '2.0', 'id': 1, 'result': '0x5bff613'}

not tested, but I think the same thing happens at other endpoints as well

  1. Erros i've met while testing blockpi api:
{"error":{"code":-32000,"message":""no sources available: decoder.SyntaxError{Pos:0, Src:\"\", Code:0x1, Msg:\"\"}""}}
{"jsonrpc":"2.0","id":null,"error":{"code":-32000,"message":"hypernode not found"}}

Update 24 jul:
{'error': {'code': -32000, 'message': 'Too Many Requests'}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant