GitHub API occassionaly returns 'Bad credentials' despite rate limit not being exceeded #101661
Replies: 3 comments
-
Hi @xgidiussenjensent-els 👋🏾 Thanks so much for reaching out in our community. Bad credential errors are sometimes difficult to troubleshoot at face value because they don't happen consistently and there are a couple of things that can cause them. The best option to resolve this is to adhere to best practices that avoid the most common causes:
And, if all else fails, I recommend opening a ticket on our Support page. They have access to the tools that it would take to dig into this issue a bit deeper. This is only recommended if you've tried the suggestions above and you're still running into this issue. Let us know if you have any additional questions! |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your answer, @ghostinhershell We are following the best practices wrt. rate limit errors: What we experience wrt. the GitHub API rate limits seems a bit odd. In that case, we look at the This repeats itself five times, after which the pipeline is aborted. Regarding access tokens: Thanks, |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have a Jenkins pipeline, which makes a number of requests to the GitHub API.
While 99% of the requests are successful, GitHub API occassionaly returns this response:
I was suspecting it to be an exceeded rate limit, so I guarded against this by fetching and printing out the rate limits before each GitHub API request:
It shows that everytime I get a 'Bad credentials' response, the remaining rate limits fetched right before were high.
I have tried having the pipeline retry a number of times with a 15 second delay between retries. Sometimes this works and the pipeline is able to proceed, while other times it gets 'Bad credentials' in all the retries.
I'm not sure what to make of this. Any suggestions?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions