Uh oh!
There was an error while loading. Please reload this page.
Be polite to API, respect rate limits - #1821
Conversation
Signed-off-by: Arshad <arshad.chotu10@gmail.com>
| endpoint = "https://api.github.com/graphql" | ||
| headers = {"Authorization": f"bearer {gh_token}"} | ||
| return requests.post(endpoint, headers=headers, json=graphql_query).json() | ||
| return polite_request(endpoint, headers=headers, json=graphql_query).json() |
There was a problem hiding this comment.
Why will this work as a GET request and not a POST request ?
There was a problem hiding this comment.
Thank you @TG1999 for spending your time on my PR and spotting this. You are absolutely right. This should work as a POST request. I should have passed method='POST' .
I'll update _get_gh_response() accordingly to ensure it sends a proper POST request
TG1999
commented
Aug 30, 2025
@unibik gentle ping on this, what's the progress here ? |
Hey @TG1999 , thanks for the reminder! I had paused open-source work for a while after GSoC and continued doing bug bounty programs, but I’d like to pick this up again. I’ll revisit the PR and push the required changes soon.... By the way sorry for late reply, i was busy in my college exams.. |
fix: #506
Implemented polite_request to enforce API rate limits and delays