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

getBlockByHash in the eth_getTransactionReceipt flow is using the wrong cache keys #3250

Closed
ebadiere opened this issue Nov 12, 2024 · 0 comments · Fixed by #3254
Closed

getBlockByHash in the eth_getTransactionReceipt flow is using the wrong cache keys #3250

ebadiere opened this issue Nov 12, 2024 · 0 comments · Fixed by #3254
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ebadiere
Copy link
Collaborator

ebadiere commented Nov 12, 2024

Description

We are getting alerts on intermittent eth_getTransactionReceipt calls with a 500 response. Tracing through the logs we can see that the getBlockByHash call is missing a valid hash, right after the call to the mirror node on the contracts/results endpoint.

Steps to reproduce

  1. Look through the logs for an eth_getTransactionReceipt call with a 500 response.
  2. Note the request ID and trace through the logs the path of the request.
  3. Notice the call to getBlockByHash is missing a valid hash.
[34mDEBUG[39m (rpc-server/84 on mainnet-hashio-85fd789b7-twzsv): [36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] Validating method parameters for eth_getTransactionReceipt, params: ["0x411f2d52652ad237296f85041e382194d3fd5a7fb006e269975dede4652b70fc"][39m"
timestamp: "2024-11-11T15:30:19.138608570Z"

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] getTransactionReceipt(0x411f2d52652ad237296f85041e382194d3fd5a7fb006e269975dede4652b70fc)

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] [GET] contracts/results/0x411f2d52652ad237296f85041e382194d3fd5a7fb006e269975dede4652b70fc 200 4 ms

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] [GET] contracts/results/0x411f2d52652ad237296f85041e382194d3fd5a7fb006e269975dede4652b70fc 200 2 ms

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] getBlockByHash(hash=0x, showDetails=false)

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] [GET] blocks/NaN 400 status

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] Failed to retrieve block for hash 0x

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] Error invoking RPC: Invalid parameter: hashOrNumber

[36m[Request ID: 51841ec6-3dc9-4dad-af6a-07c4c3f01e02] [POST]: eth_getTransactionReceipt 500 20 ms

Additional context

No response

Hedera network

mainnet

Version

v0.59.3

Operating system

Linux

@ebadiere ebadiere added the bug Something isn't working label Nov 12, 2024
@ebadiere ebadiere added this to the 0.61.0 milestone Nov 12, 2024
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
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants