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

withClaimedRewardsEras, rate limit exceeded #5923

Open
ironoa opened this issue Jun 27, 2024 · 1 comment
Open

withClaimedRewardsEras, rate limit exceeded #5923

ironoa opened this issue Jun 27, 2024 · 1 comment

Comments

@ironoa
Copy link

ironoa commented Jun 27, 2024

related to #5859

api.derive.staking.query(validatorAddress,{withLedger:true, withClaimedRewardsEras: true})

seems to be so heavy that I get a RPC-CORE: queryStorageAt(keys: Vec<StorageKey>, at?: BlockHash): Vec<StorageChangeSet>:: -32999: RPC rate limit exceeded error message when I'm connected to a public endpoint. Kusama node (v1.13.0).

  • If I set withClaimedRewardsEras: false it works on a Kusama public endpoint (i.e. wss://kusama-rpc.polkadot.io/), but of course I'm missing info
  • I can get past to this issue when I'm connected to my internal node, withClaimedRewardsEras: true, but still it takes roughly 13 seconds for 1 address
  • Polkadot doesn't seem to have the same issue: I can make the query with withClaimedRewardsEras: true set on internal and public endpoints with no problems

Not sure that's expected, so I'm opening this issue...

ironoa added a commit to w3f/polkadot-k8s-payouts that referenced this issue Jun 28, 2024
@TarikGul
Copy link
Member

seems to be so heavy that I get a RPC-CORE: queryStorageAt(keys: Vec, at?: BlockHash): Vec:: -32999: RPC rate limit exceeded error message when I'm connected to a public endpoint. Kusama node (v1.13.0).

As you mentioned I would imagine this is directly related to the public node you are connected to. For all the heavy calls we are using entries to get everything at once so there is no limit hit. Have you tried with other Kusama public nodes?

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

2 participants