js icon indicating copy to clipboard operation
js copied to clipboard

findAllByOwner with RPC Limit

Open schellenbergk opened this issue 2 years ago • 1 comments

I'm using Quicknode rpc to fetch all nfts by owner... Everything was working fine for months, but now QN has put a limit on getMultipleAccounts to improve the performance. So now calling:

const allNFTs = await metaplex.nfts().findAllByOwner({ owner });

// results:
Error: 413 Request Entity Too Large: {"jsonrpc":"2.0","id":"3c3ba0bd...","error":{"code":-32602,"message":"getMultipleAccounts, eth_getLogs, and eth_newFilter are limited to a 75 range"}}

What would be the solution for that? I think adding pagination params could fix this issue. Thoughts?

schellenbergk avatar Nov 26 '23 12:11 schellenbergk

Having same issue, its been like 3 days it started :/ for now i'm treating the error and trying again with a different rpc...

PdroCorrea avatar Nov 26 '23 22:11 PdroCorrea