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

rpc requests stuck in retry and causing exit #1362

Open
3commascapital opened this issue Dec 19, 2024 · 0 comments
Open

rpc requests stuck in retry and causing exit #1362

3commascapital opened this issue Dec 19, 2024 · 0 comments

Comments

@3commascapital
Copy link
Contributor

3commascapital commented Dec 19, 2024

Version

[email protected]

Current behavior

while syncing bsc via llama's node the following error occurs eth_getLogs range is too large, max is 10k blocks

Expected behavior

the error should be handled by the surrounding code. it would be great to parse out the error that is seen from this situation, but that seems too custom a move given that an rpc provider could change their error messages or metadata and ponder would have to adjust. covering 90% of use cases with a block range constraint could be a simpler fix. #1361

Steps to reproduce

run the project, after filling out the example env for .env.local

for rpc 56, use a llama rpc

Link to repository

https://github.com/gibsfinance/bridge-indexer

Anything else?

bridge-indexer           | 11:05:46 PM DEBUG sync       Failed 'eth_getLogs' RPC request, retrying after 4000 milliseconds
bridge-indexer           | InternalRpcError: An internal error was received.
bridge-indexer           | 
bridge-indexer           | URL: https://binance.llamarpc.com
bridge-indexer           | Request body: {"method":"eth_getLogs","params":[{"fromBlock":"0x1c96331","toBlock":"0x1c98ae3","topics":[["0x482515ce3d9494a37ce83f18b72b363449458435fafdd7a53ddea7460fe01b58","0x27333edb8bdcd40a0ae944fb121b5e2d62ea782683946654a0f5e607a908d578"]],"address":["0x8c0db248e87f53e53f7d19a8bd1cfab16f5b69e7"]}]}
bridge-indexer           | 
bridge-indexer           | Details: eth_getLogs range is too large, max is 10k blocks
bridge-indexer           | Version: [email protected]
bridge-indexer           |     at withRetry.delay.count.count (file:///app/node_modules/viem/utils/buildRequest.ts:138:25)
bridge-indexer           |     at processTicksAndRejections (node:internal/process/task_queues:105:5)
bridge-indexer           |     at attemptRetry (file:///app/node_modules/viem/utils/promise/withRetry.ts:44:22)
bridge-indexer           | caused by: InternalRpcError: An internal error was received.
bridge-indexer           | 
bridge-indexer           | URL: https://binance.llamarpc.com
bridge-indexer           | Request body: {"method":"eth_getLogs","params":[{"fromBlock":"0x1c96331","toBlock":"0x1c98ae3","topics":[["0x482515ce3d9494a37ce83f18b72b363449458435fafdd7a53ddea7460fe01b58","0x27333edb8bdcd40a0ae944fb121b5e2d62ea782683946654a0f5e607a908d578"]],"address":["0x8c0db248e87f53e53f7d19a8bd1cfab16f5b69e7"]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant