MinaFoundation / PGT_LeaderBot

Tool that will track and rank contributions across the different Mina developer programs
4 stars 5 forks source link

Sleep if error occures Github API Rate Limit #30

Closed berkingurcan closed 1 month ago

berkingurcan commented 1 month ago

It seems like we are having Github API Rate Limit issue even we use the token.

2024-09-16 16:28:59 - github_tracker_bot.process_commits - ERROR - Failed to fetch commit data: {"message":"API rate limit exceeded for user ID . If you reach out to GitHub Support for help, please include the request ID  and timestamp 2024-09-16 16:28:59 UTC.","documentation_url":"https://docs.github.com/rest/overview/rate-limits-for-the-rest-api","status":"403"}

So, sleep 1 minutes if the request get rate limit error.

memreok commented 1 month ago

I 'm coming from hacktoberfest, can you assign to me?

berkingurcan commented 1 month ago

Solved by https://github.com/MinaFoundation/PGT_LeaderBot/pull/40/