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

[Bug] Error when pooling blocks #5668

Open
2 of 3 tasks
1aBcD1234aBcD1 opened this issue Oct 15, 2024 · 2 comments
Open
2 of 3 tasks

[Bug] Error when pooling blocks #5668

1aBcD1234aBcD1 opened this issue Oct 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@1aBcD1234aBcD1
Copy link

Bug report

Hi everyone.
Im trying to sync some subgraphs using the latest ftm-sonic ethereum client. However, im getting the following error invalid argument 0: hex number with leading zero digits when starting up the graphprotocol/graph-node

I guess the issue is with how the requests are been build by the graph service, since I can make the requests as follows without any type of error

curl http://localhost:8545
-X POST
-H "Content-Type: application/json"
--data '{"method":"eth_getBlockReceipts","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
Is there any workaround for this?

Thanks!

Relevant log output

sonicgraph-node-1  | 2024-10-15T14:54:27.150261885Z Oct 15 14:54:27.150 WARN Trying again after eth_getBlockReceipts RPC call for block 0x0004bf7400000328f6ab54bf7b9b288bbde58f74653d727d8ddc92de73443d61 failed (att
empt #10) with result Err(Rpc(Error { code: InvalidParams, message: "invalid argument 0: hex number with leading zero digits", data: None })), provider: sonic-mainnet-rpc-0, component: EthereumPollingBlockIngestor

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

Linux

@1aBcD1234aBcD1 1aBcD1234aBcD1 added the bug Something isn't working label Oct 15, 2024
@1aBcD1234aBcD1
Copy link
Author

So Im looking into how the requests are made with tcpdump and Im seen that is asking for the blockHash instead of the blockNumber. You can check it as follows what my node is receiving from the graphService.

{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["0x0004bf7d000002ccf52e4774d1a88fc89e8f4307eed45202630e8627d1f446e0"],"id":60}

@1aBcD1234aBcD1
Copy link
Author

Okay, I have figured out that it is indeed a problem on how the sonic node manages this request. I have already opened a pull request in their github to fix this issue: Fantom-foundation/Sonic#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant