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
Graph-node : WARN Trying again after eth_getBlockByNumber(0, false) RPC call failed (attempt #10) with result Err(Decoder error: Error("invalid length 1, expected a 0x-prefixed hex string with length of 16", line: 0, column: 0))
#796
Closed
4 tasks
liuaiolos opened this issue
Apr 6, 2021
· 0 comments
I try to deploy a graph-node and when start it fails.
The error message is :WARN Trying again after eth_getBlockByNumber(0, false) RPC call failed (attempt #10) with result Err(Decoder error: Error("invalid length 1, expected a 0x-prefixed hex string with length of 16", line: 0, column: 0)), provider: mainnet-rpc-0
I try to use the curl command: curl https://exchaintest.okexcn.com -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false],"id":1}'
and it returns the error:{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: hex string without 0x prefix"}}
if I change the params "0" to "0x0" will be OK. But I can't change the graph-node's code.So the error messages caused the
graph-node fail.
2. Impact
3. Recover
Expected Result
curl https://exchaintest.okexcn.com -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false],"id":1}'
Summary of Bug
1. Describe
I try to deploy a graph-node and when start it fails.
The error message is :WARN Trying again after eth_getBlockByNumber(0, false) RPC call failed (attempt #10) with result Err(Decoder error: Error("invalid length 1, expected a 0x-prefixed hex string with length of 16", line: 0, column: 0)), provider: mainnet-rpc-0
I try to use the curl command: curl https://exchaintest.okexcn.com -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false],"id":1}'
and it returns the error:{"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 0: hex string without 0x prefix"}}
if I change the params "0" to "0x0" will be OK. But I can't change the graph-node's code.So the error messages caused the
graph-node fail.
2. Impact
3. Recover
Expected Result
curl https://exchaintest.okexcn.com -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false],"id":1}'
{"number":"0x1cb239","hash":"0x2b8802c0fb76a78f0129622c3bfa51fc3298538340b462b9975810552f07573b","parentHash":"0x2f2e1e9e6312c9363cfe30d5ea6c02d9dfef47a1af034ab8d8cf3b857079c118","nonce":"0x0000000000000000","sha3Uncles":"0x0000000000000000000000000000000000000000000000000000000000000000","logsBloom":"0x00200200000000000000000084020800000400208800000118200000800000000000400000000000100200000088000000040002020000000000000080a010000111004000004000000000180800142000000006c040008004400008c10000000000002000000000000000080000044404020000000004000000031c0002201020400009004000001002a000080000200000084110000008000000400004000006080004000800000000000000042000000c000800020000800000001000000480000042000402002000008000002000000000000000001000000002000000000010000000000010000000002000004000800000000010400020881001000000","transactionsRoot":"0x416baf9f77c6dd046f9b329b96a16be7e875921d7f3501e343f6c4e3353e021e","stateRoot":"0xe7221d6655b923d948343876feec7a8697d76f0ff04dc56ab6322add2dc76078","miner":"0xed7aff397240437610647c42d7d821df0592b6fe","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","difficulty":"0x0","totalDifficulty":"0x0","extraData":"0x","size":"0x172","gasLimit":"0xffffffff","gasUsed":"0x108cd2","timestamp":"0x606c2b33","uncles":[],"receiptsRoot":"0x0000000000000000000000000000000000000000000000000000000000000000","transactions":["0x91c64c69af307c2effc25607e091887b0c1c2e86ee1719c91ba5414aa80072c1","0x8d21cdb579fa0e46f41435e9124f7109c0f46a16029ba654634d4b897f6f410e","0xddd29c836b6910e7ad7950cb2b4d390055e3e16aafd3f199ed6172e5f81d2fd0","0x6dc929472afd45ff56860c26ddf9520e4a507168c4c9ddfcb14b0457fbbbf6f9","0x31667765bdf7e4d541b5ef4d71b6cfc5e385df4dadf51e3ee1d84d65d1de56d5","0x46e82c999a8dd0e73509c3d9f1a920a933ed8e2ea415f4465b004af4c5055c76","0xfede49e1e6043db503f4653d77763bca5735fd4f128fa5230c3d6eb6fcd08cfa","0xd9502521309a98ebb4b25e37e69e03f995a92d5b1e1ccafc2f40b40cb7701af5","0x1092f471c4b5923dd682b00fda27e4991950574ff5199e36925f158090e6d700","0xb8c389b9d8517e74c3c3080fb374090a07456ae6a31e6d722bb4e70b61e813ce","0x092479c34522fa2c4323276cffcfe10441c28da4cb6e99607f5d04beb48d6731","0xbbe62ab8cf927411a10c310a68338ded23da502e48516227088d9e690396e7e2","0x3f3bcfd442c0ae4344241bf3d071de72390f68c068d2ebe70a7881c38bc32f00","0xd26258b2e8945a6912b1f04d320eaa69411c17084f87248447cf8d9f587113dd","0xa2ddf106ae1b3522441306933300dff607826ac66e07631c193b14215819bc25","0x7ee5c26bb4abff1aa60814397ea00f3b5c1148990eb9813a4d28a7ca1598c88a","0xeac3c1917f8d362de235fb54ac0bc9c5c1c78a54f08970c59f94977ac8ab3eb2","0xeb0c8d4c15949ce81add8a596899567539217a2369f0144789fa4352a6225633"]}}
Version
Steps to Reproduce
curl https://exchaintest.okexcn.com -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0", false],"id":1}'
For Admin Use
The text was updated successfully, but these errors were encountered: