Code Monkey home page Code Monkey logo

testnets's People

Contributors

blockpi-rayn avatar gothampi avatar liwuv587 avatar yangmengxinbtp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

testnets's Issues

API KEY consumption statistics inconsistency

API KEY consumption statistics inconsistency on API Key list page and API Key details page:

API Key list page

There are Total requests shows some numbers:
Screenshot 2022-06-26 at 21 06 34

API Key details page

But in API key detail shows no any statistics at all - all zeroes
Screenshot 2022-06-26 at 21 11 18

Screenshot 2022-06-26 at 21 11 31

Wallet Balance

I deposited 1 usd after using free RUs. Naturally, it should be less than 1 dollar in my wallet.

us4

Auto renew problem

Purchased package and set auto-renew. (pls check screenshot) but auto-renew is not enabled correctly.
verified this from overview page. and tried again to enable auto renew.
Second attemt was successfull
2022-06-24_19-16
2022-06-24_19-17z

API keys https endpoint refuses connection

On the testnet portal https://testnet.blockpi.io/workbench/key-info when I generate api keys, the endpoint URL starts with https protocol, but in fact api endpoint works only by http protocol.

curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_blockNumber","params":[],"id":83}' https://klaytn.testnet.blockpi.net/v1/rpc/5fd61f3d8d76d147344dce581a97d25646580f19
curl: (7) Failed to connect to klaytn.testnet.blockpi.net port 443: Connection refused

curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_blockNumber","params":[],"id":83}' http://klaytn.testnet.blockpi.net/v1/rpc/5fd61f3d8d76d147344dce581a97d25646580f19
{"jsonrpc":"2.0","id":83,"result":"0x59af7e8"}

Hypernode abnormal metrics should increase when RPC endpoint is unavailable.

Example: When Klaytn node was shutdown, none of the following Hypernode metrics were increasing (see below).
Most likely Unavailable or NotFound counter should have been increasing, when peer blockchain node is unavailable.
It would be possible to set up alerting based on that.

grpc_server_handled_total{grpc_code="Aborted",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="AlreadyExists",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Canceled",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="DataLoss",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="DeadlineExceeded",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="FailedPrecondition",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Internal",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="InvalidArgument",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="NotFound",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="OK",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="OutOfRange",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="PermissionDenied",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="ResourceExhausted",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Unauthenticated",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Unavailable",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Unimplemented",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0
grpc_server_handled_total{grpc_code="Unknown",grpc_method="ServerReflectionInfo",grpc_service="grpc.reflection.v1alpha.ServerReflection",grpc_type="bidi_stream"} 0

ERC20 address verification from STAKR.space

Provider name: stakr.space
Discord Tag: stakr.space1
ERC20: 0xE09ACBb1eE69E0411F3D0d22bb43BE50560238AA

github name changed from github.com/papanomad to github.com/stakrspace

Incorrect Wallet Balance

Incorrect wallet balance and RU balance.

Please see screenshot:
Screenshot 2022-06-24 at 00 58 57

Wallet balance says: 0 usdc, but should be 0.5 usdc
RU balance says 0, but should be 1K

andots task

BP-01-001
{
"uid": "oI14gh039IF7E0",
"api_key_name": "andots"
}

BP-01-001 Delete API Key Delay

I can call it normally for a few minutes after deleting the API Key. After a few minutes it returns {"error":{"code":-32000, "message": "record not found"}}.
url:http://klaytn.testnet.blockpi.net/v1/rpc/9e63be8ecce16f51ab6c6bbdbab47f59b6e1f913

The following return has occurred during the call:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_blockNumber","params":[],"id":83}' http://klaytn.testnet.blockpi.net/v1/rpc/9e63be8ecce16f51ab6c6bbdbab47f59b6e1f913
{"jsonrpc":"2.0","id":83,"error":{"code":-32000,"message":"the header does not exist (block number: 94166330)"},"result":"0x59cddb0"}

Does this occur to indicate a problem?

New API KEY does not apper untill page is refreshed

When you try to create New API KEY after pressing button "Generate", no New API KEY appears in the list untill you refresh whole page.

API List once button "generate" is pressed.
Screenshot 2022-06-23 at 23 40 30

API List once page is refreshed
Screenshot 2022-06-23 at 23 43 48

login state exit

Deposit, after tuning MetaMask submit the order, refresh the page, refresh again, refresh twice in a row, login state exit, need to log in again

Ru

UID: p0I405CihC130C
15 request
total ru consumed 575
After 10 requests, some requests do not receive data on the dashboard. dashboard accounting data is not correct.

1
2
3

Some rpc queries fails with: "the header does not exist"

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"result":false}

~$ curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"klay_blockNumber","params":[],"id":83}' http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":83,"error":{"code":-32000,"message":"the header does not exist (block number: 94131970)"},"result":"0x59c572c"}

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"the header does not exist (block number: 94131968)"},"result":false}

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"result":false}

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"result":false}

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"result":false}

~$ curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST http://klaytn.testnet.blockpi.net/v1/rpc/cd0571af8418b6f3dd4dd934941fdd9c6b2368c3
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"the header does not exist (block number: 94132099)"},"result":false}

Incorect response from blockpi api

  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'}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.