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

Receiving 429 Client Error: Too Many Requests for url: #1

Closed
abahmanem opened this issue Jan 15, 2025 · 1 comment · Fixed by #2
Closed

Receiving 429 Client Error: Too Many Requests for url: #1

abahmanem opened this issue Jan 15, 2025 · 1 comment · Fixed by #2
Assignees

Comments

@abahmanem
Copy link

I'm receiving : 429 Client Error: Too Many Requests for url: when i execute the script.

python3 fetch_validators.py

Fetching auction metrics...
Auction metrics fetched successfully:
  current_era_id: 16558
  active_validator_number: 96
  total_bids_number: 280
  active_bids_number: 96
  total_active_era_stake: 6815416026630707690
Processing page 1 of validators...
Processed 10 validators on page 1...
Processing page 2 of validators...
Processed 10 validators on page 2...
Processing page 3 of validators...
Processed 10 validators on page 3...
Processing page 4 of validators...
Error checking voting participation for 015b594df86b23481670065d634a6f22ae0f4b1b9f8aaaf96559b6a9c155c8c93a: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/accounts/015b594df86b23481670065d634a6f22ae0f4b1b9f8aaaf96559b6a9c155c8c93a/ft-token-actions?from_block_height=3798134&to_block_height=3808400&contract_package_hash=f64d28df7fc354af183829bad6006525f88d37f0d982ba6125d58ddfa521e0fa
Error checking voting participation for 015b594df86b23481670065d634a6f22ae0f4b1b9f8aaaf96559b6a9c155c8c93a: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/accounts/015b594df86b23481670065d634a6f22ae0f4b1b9f8aaaf96559b6a9c155c8c93a/ft-token-actions?from_block_height=3991820&to_block_height=4012820&contract_package_hash=5743998e54844ae3587bf1c80c83695a767ab568f149be87db15216b57a20831
Error fetching validator performance for 011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/validators/011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794/relative-performances?era_id=16197,15837,15477&page=1
Error checking voting participation for 011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/accounts/011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794/ft-token-actions?from_block_height=3798134&to_block_height=3808400&contract_package_hash=f64d28df7fc354af183829bad6006525f88d37f0d982ba6125d58ddfa521e0fa
Error checking voting participation for 011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/accounts/011c7c2614ad7c7e9a25feafc549dbecf7b52c4a6221dcb37857e8f8b5e4d27794/ft-token-actions?from_block_height=3991820&to_block_height=4012820&contract_package_hash=5743998e54844ae3587bf1c80c83695a767ab568f149be87db15216b57a20831
Processed 10 validators on page 4...
Error fetching validators: 429 Client Error: Too Many Requests for url: https://api.cspr.cloud/validators?era_id=16557&page=5&includes=account_info%7Burl,is_active%7D,average_performance,network_share
@mrkara mrkara self-assigned this Jan 16, 2025
@mrkara
Copy link
Contributor

mrkara commented Jan 16, 2025

@abahmanem Thanks a lot for reporting the issue! 🙏

It looks like a rate limiting issue on the free tier of CSPR.cloud. Gonna add a throttling mechanism so anyone can use this out of the box.

By the way, anyone who's building something that requires CSPR.cloud can get restrictions on the free keys lifted by reaching out to MAKE.

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

Successfully merging a pull request may close this issue.

2 participants