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

[Failed-Request-Alert-Tuning] eth_getBlockByHash && eth_getBlockByNumber method returns too many 500 errors #3345

Open
Tracked by #3344
quiet-node opened this issue Dec 20, 2024 · 0 comments · May be fixed by #3349
Assignees
Labels
bug Something isn't working
Milestone

Comments

@quiet-node
Copy link
Member

quiet-node commented Dec 20, 2024

Problem

  • Approximately 60,000 log entries on mainnet display the error: Received an invalid integer type: null, without providing additional diagnostic details. This issue is a major contributor to 500 errors for both eth_getBlockByHash and eth_getBlockByNumber. The root cause stems from the shared EthImpl.getBlock() method used by both endpoints. The closest trace log indicates, Synthetic transaction hashes will be populated in the block response, suggesting that the issue arises after the populateSyntheticTransactions() process. It is likely rooted in the ReceiptsRootUtils.buildReceiptRootHashes() method or during the instantiation of a new Block().

  • Another issue identified in the mainnet logs is the error: Cannot read properties of null (reading 'toString'), which occurs on eth_getBlock endpoints. This error is logged immediately after the Mirror Node (MN) call is submitted and is likely originating within the EthImpl.getBlock() method. Example Request ID: 2504dbdb-e3a4-4d6c-8f2f-af8ba8c7d05b.

Solution

Investigate and fix the underlying issue in the EthImpl.getBlock() function that causes the Internal Error, ensuring proper handling and accurate processing of block data.

@quiet-node quiet-node added the bug Something isn't working label Dec 20, 2024
@quiet-node quiet-node moved this from Backlog to Tasks In Progress in Smart Contract Sprint Board Dec 20, 2024
@quiet-node quiet-node added this to the 0.63.0 milestone Dec 20, 2024
@quiet-node quiet-node changed the title [Failed-Request-Alert-Tuning] eth_getBlockByHash method returns a 500 error when the mirrorNodeClient encounters server-side exceptions. [Failed-Request-Alert-Tuning] eth_getBlockByHash method returns a 500 errors Dec 20, 2024
@quiet-node quiet-node changed the title [Failed-Request-Alert-Tuning] eth_getBlockByHash method returns a 500 errors [Failed-Request-Alert-Tuning] eth_getBlockByHash && eth_getBlockByNumber method returns too many 500 errors Dec 20, 2024
@quiet-node quiet-node self-assigned this Dec 20, 2024
@quiet-node quiet-node moved this from Tasks In Progress to In Review in Smart Contract Sprint Board Dec 20, 2024
@quiet-node quiet-node modified the milestones: 0.63.0, 0.63.1 Dec 23, 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: In Review
1 participant