FilterOutEvent error:413 Request Entity Too Large

getMultipleAccounts, eth_getLogs, and eth_newFilter are limited to a 5 range.
in arb-goerli,we can not use func with limit 5 range.why limit to 5 range?

I started getting the same error on my script without warning.

Error: 413 Request Entity Too Large: {"jsonrpc":"2.0","id":"37f88251-2e72-4c5a-a18d-8d037ce6a20b","error":{"code":-32602,"message":"getMultipleAccounts, eth_getLogs, and eth_newFilter are limited to a 5 range"}}
    at ClientBrowser.callServer (node_modules/@solana/web3.js/lib/index.cjs.js:6474:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Hello user6,

When working with logs and events on EVM-based chains, you may encounter a block range limit of 10,000 blocks when using methods like eth_getLogs or eth_getFilterLogs. This limit is in place to ensure maximum reliability for your calls and to prevent resource-intensive requests that could lead to degraded service.

Note: This range limit applies to Discover+, Build, and Scale plans. A block range limit of 5 is in place for free Discover accounts. Upgrading to any of our paid plans will allow for a 10k block range limit.

-Nick

Hello Blockchain_Man,

When working with logs and events on EVM-based chains, you may encounter a block range limit of 10,000 blocks when using methods like eth_getLogs or eth_getFilterLogs. This limit is in place to ensure maximum reliability for your calls and to prevent resource-intensive requests that could lead to degraded service.

Note: This range limit applies to Discover+, Build, and Scale plans. A block range limit of 5 is in place for free Discover accounts. Upgrading to any of our paid plans will allow for a 10k block range limit.

-Nick

So I’m having a Solana issue: getMultipleAccounts is getting called by one of my downstream dependencies. Do you have any hints where to go on this?

You’ll need to open a ticket with our team internally so we can take a look. You can do so here.

I got it, the client library was using account.getMultiple with an array of 20 or so accounts, I just fixed it with a small loop.

Thank you.

1 Like