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

Rate-limit = 0 response when using polkadot.api.subscan.io #2324

Open
chuacw opened this issue Nov 8, 2024 · 2 comments
Open

Rate-limit = 0 response when using polkadot.api.subscan.io #2324

chuacw opened this issue Nov 8, 2024 · 2 comments

Comments

@chuacw
Copy link

chuacw commented Nov 8, 2024

The staking dashboard uses polkadot.api.subscan.io and when it uses the following:

"API rate limit exceeded" is returned.

@rossbulat
Copy link
Collaborator

Hi @chuacw, thanks for reporting this. Each user is currently restricted to the per IP address limit, I have this problem a lot in development when Subscan is enabled & things are constantly hot reloading.

This is an issue that is proving to be more problematic as we introduce more Subscan support. I have been debating in my mind whether to just launch an internal API service the dashboard can leverage with much higher rate limits. I initially thought this is a bit away from core value proposition, but recently I've been leaning towards actually doing this API service as a plugin to the dashboard.

Definitely an issue - we cannot introduce a Subscan API key as it'll be publicly accessible; dashboard is a static webpage & doesn't rely on a backend afterall. So this internal API service would probably only support the production staking.polkadot.cloud domain. We'd have a private endpoint for testing also.

@chuacw
Copy link
Author

chuacw commented Nov 8, 2024

You should consider fixing this soon, because this has broken some functionality of the dashboard.

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