github-readme-stats: [Down Time] Card throws 'maximum retries exceeded' error
Hi everyone, I see that all personal access tokens are currently failing, thus you will see the “Maximum retries exceeded” error.
I’m looking into the issue to figure out what caused it.
Ideally, it should be fixed in an hour when the PATs get rest.
Details
Public instance information
Explanation
Hey everyone, sorry for the recent downtimes.
For the sake of transparency, we get a huge amount of requests per month (it’s kind of mind boggling for a side project which I built just for fun). Here’s the vercel dashboard statistics:

As you can see even with 73% of the responses being cached by vercel the amount of live requests are huge, and the bottleneck here is Personal Access Tokens
Each PAT have 5000 points, and based on the complexity of the GraphQL query & resource limitations set by GitHub, it’s actually very very low considering that amount of requests.
To circumvent the issue, we currently have 7 PATs (thats 35k points) which sometimes get exhausted. Thanks to @rickstaa we are going to add few more probably bumping it up to 10 or 12, hopefully that could help alleviate the downtimes.
Note: That these downtimes are temporary, and only lasts for 1hour, since PATs regenerate after 1 hour
So whats the idea way?
https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-979306704 Deploy on your own vercel instance. WHY? It’s easy to do, free & reliable.
- It reduces loads on our vercel instance.
- Your own PAT will give you more concrete stats including private stats
- It ensures that there won’t be any downtime on your profile stats because you are the only one who is gonna hit your URL
_Originally posted by @anuraghazra in https://github.com/anuraghazra/github-readme-stats/issues/2130#issuecomment-1270624232_
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 140
- Comments: 157 (7 by maintainers)
Commits related to this issue
- Use my own instance of github-readme-stats There was recently some downtime with the default instance: https://github.com/anuraghazra/github-readme-stats/issues/1471 — committed to mtsknn/mtsknn by mtsknn 5 years ago
- chore: replace `git.io` links (#1724) * chore: replace `git.io` links * Update src/common/utils.js Co-authored-by: Rick Staa <rick.staa@outlook.com> Co-authored-by: Rick Staa <rick.staa@outl... — committed to anuraghazra/github-readme-stats by SukkaW 5 years ago
- Update vercel.json Change maxDuration as indicated in Issue: https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-979201779 — committed to katkaypettitt/github-readme-stats by katkaypettitt 5 years ago
- Self-Hosted Stats https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-979306704 — committed to TheYoBots/TheYoBots by TheYoBots 5 years ago
- fix: improve error caching behavoir This commit ensures that the GraphQL Pat error is not cached in any browser. See https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-128263... — committed to anuraghazra/github-readme-stats by rickstaa 4 years ago
- fix: improve error caching behavoir (#2211) This commit ensures that the GraphQL Pat error is not cached in any browser. See https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomm... — committed to anuraghazra/github-readme-stats by rickstaa 4 years ago
- Update README.md Use my own instance of `anuraghazra/github-readme-stats`. Default instance has recent downtime: anuraghazra/github-readme-stats#1471 — committed to hanseo0507/hanseo0507 by hanseo0507 4 years ago
- Revert "Add GitHub stats section (again)" It does not work, see https://github.com/anuraghazra/github-readme-stats/issues/1471. This reverts commit fe2d117505668b4dc2219ce580a0d0f3ddb41ab8. — committed to marcwrobel/marcwrobel by marcwrobel 4 years ago
- comment the readme statue for the [issue](https://github.com/anuraghazra/github-readme-stats/issues/1471), readme status display not working for me now until I deploy my instance. — committed to edonyzpc/edonyzpc by edonyzpc 4 years ago
- Update README.md Change stats card url due to anuraghazra/github-readme-stats#1471 — committed to NCBM/NCBM by NCBM 4 years ago
- Merge from upstream (#2) * ci: add e2e vercel test action (#2054) * ci: add e2e vercel test action This commit adds several end-to-end tests that can be used to test whether the Vercel Preview... — committed to AlexvZyl/github-readme-stats by AlexvZyl 4 years ago
- fix: improve error caching behavoir (#2211) This commit ensures that the GraphQL Pat error is not cached in any browser. See https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomm... — committed to devantler/github-readme-stats by rickstaa 4 years ago
- fix: improve error caching behavoir (#2211) This commit ensures that the GraphQL Pat error is not cached in any browser. See https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomm... — committed to lChen-dev/zhang-github-readme-stats by lChen-dev 4 years ago
- Modified to use self-deployed readme stats This is due to: https://github.com/anuraghazra/github-readme-stats/issues/1471 — committed to RinMinase/RinMinase by RinMinase 3 years ago
- fix 1471 https://github.com/anuraghazra/github-readme-stats/issues/1471 — committed to maanisim/michalani by maanisim 3 years ago
- Update README.md https://github.com/anuraghazra/github-readme-stats/issues/1471 — committed to maanisim/michalani by maanisim 3 years ago
- Update README.md Update a issue of called Pat_1 https://github.com/anuraghazra/github-readme-stats/issues/2149 https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-15704113... — committed to digitalarche/digitalarche by digitalarche 3 years ago
- Fix github readme stats crash Using https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1586091299 or https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomme... — committed to bernardassan/bernardassan by bernardassan 3 years ago
- Added sigma-five to github stats https://github.com/anuraghazra/github-readme-stats/issues/1471 — committed to Madu-de/Madu-de by Madu-de 3 years ago
- Update README.md <p align="center"> <img width="100px" src="https://res.cloudinary.com/anuraghazra/image/upload/v1594908242/logo_ccswme.svg" align="center" alt="GitHub Readme Stats" /> <h2 align=... — committed to AniketAni11/AniketAni11 by AniketAni11 3 years ago
Hi everyone.
Sorry for the inconvenience. I will highly recommend deploying github-readme-stats on your own vercel instance to fix this issue, while I try to find a fix. Currently I’m unable to find any root cause.
Consider deploying on your own fork. follow the guide -> https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance
Youtube video tutorial: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107
Also after forking make sure to open vercel.json and change the maxDuration option to 10.
Added 4 new PATs, let’s observe the downtime. For some reason the PATs are weirdly depleting super fast. not sure why.
ALSO: Note that deploying on your own instance is ALWAYS a better option than relaying on ours
So please I enocurage everyone to deploy on their own instance, If you face any kind of issues while deployment I’m more than happy to help you out.
The BUG is back… I should be more clear lol
A friendly ping to indicate that this is issue is occurring again 😐
Hello! I resolved this just add a variable that increases the token’s addition (sigma-five) in order to solve the problem like this: Before:
<img height="120em" src="https://github-readme-stats.vercel.app/api/top-langs/?username=adriannylelis&layout=compact&langs_count=7&theme=dracula"/>After adding (sigma-five) :<img height="120em" src="https://github-readme-stats-sigma-five.vercel.app/api/top-langs/?username=adriannylelis&layout=compact&langs_count=7&theme=dracula"/>And the problem was solved. But they say If to many people switch to @sigma-five’s branch that instance will likely reach GitHub’s rate limits too. This is discussed in https://github.com/anuraghazra/github-readme-stats/issues/2149
Its back lol
Experiencing the same:
That looks like a different error I will check.
Yes, it’s happening intermittently for some people, and for some it’s not.
Thanks for this solution, this is working for me (18 January 2023).
This section: https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance and this YouTube video tutorial: https://www.youtube.com/watch?v=n6d4KHSKqGk&feature=youtu.be&t=107 combined have resolved my problems
@dginovker Thanks for your offer. I, however, have more than enough we just need to add them to Vercel. 👍🏻 But most importantly, it is best if more people deploy their own Vercel instance (see https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance).
Posting this here as a reference:
Hey everyone, sorry for the recent downtimes.
For the sake of transparency, we get a huge amount of requests per month (it’s kind of mind boggling for a side project which I built just for fun). Here’s the vercel dashboard statistics:
As you can see even with 73% of the responses being cached by vercel the amount of
liverequests are huge, and the bottleneck here is Personal Access TokensEach PAT have 5000 points, and based on the complexity of the GraphQL query & resource limitations set by GitHub, it’s actually very very low considering that amount of requests.
To circumvent the issue, we currently have 7 PATs (thats 35k points) which sometimes get exhausted. Thanks to @rickstaa we are going to add few more probably bumping it up to 10 or 12, hopefully that could help alleviate the downtimes.
So whats the idea way?
https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-979306704 Deploy on your own vercel instance. WHY? It’s easy to do, free & reliable.
_Originally posted by @anuraghazra in https://github.com/anuraghazra/github-readme-stats/issues/2130#issuecomment-1270624232_
@anuraghazra Maybe we should add this to the bug template FAQ (i.e. https://github.com/anuraghazra/github-readme-stats/edit/master/.github/ISSUE_TEMPLATE/bug_report.md)? Also, maybe it is better to put the FAQ on top?
Hi folks, I think the PATs are again depleting (even though we have 6 PATs now)
Please consider https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-979306704
Unfortunately, there is not much we can do with the public instance. We are limited by the number of requests from the GitHub API. In theory, we can increase the already large number of API tokens that the public instance uses, but this will not solve the problem. Firstly, only the owner of the repository can do this, and secondly, the number of users is constantly growing and very soon we will again face the same problem. Currently the best way to avoid this issue is deploying own instance, if you have any idea how we can resolve it with public one feel free to share.
back then, there was the suggestion
https://github-readme-stats-git-masterrstaa-rickstaa.vercel.appnow, I’m restoring it to the original
https://github-readme-stats.vercel.appand it’s working again
if you have ever used git on the cmdline its basically the same thing
here`s the url to make a token: https://github.com/settings/tokens how to add an env var to Vercel: https://vercel.com/docs/concepts/projects/environment-variables
@anuraghazra @rickstaa I’m receiving it this morning
@cloudybyte I think I found the problem. The GitHub CDN needs the
no-cache(see https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls#an-image-that-changed-recently-is-not-updating). I updated the cache using thecurl -X PURGE https://camo.githubusercontent.com/bdc4b7001ae4db64d42b0567e58c40584162aff3cd12f250869298dafec66d78/68747470733a2f2f6769746875622d726561646d652d73746174732e76657263656c2e6170702f6170693f686964655f72616e6b3d747275652673686f775f69636f6e733d7472756526696e636c7564655f616c6c5f636f6d6d6974733d66616c736526636f756e745f707269766174653d747275652664697361626c655f616e696d6174696f6e733d66616c7365267468656d653d6461726b266c6f63616c653d656e26686964655f626f726465723d7472756526637573746f6d5f7469746c653d476974687562c2a0537461747326757365726e616d653d4b656e74616b6f6f6e67command and now your profile is working again.It’s not really.
The @codeSTACKr video is outdated, the vercel process changed. Same for the image guide from https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance.
And by the way just forking doesn’t work anymore, during vercel deployment you will get this error:
So one has to edit
vercel.jsonbefore if you plan to use the free tier:@ItsAleph Thanks a lot for offering, but that is unnecessary and not wise from a security standpoint. @anuraghazra and I will create new PAT ourselves when the current PATs run out. Are you currently experiencing problems?
It works well on this hour, and I have deploy on my own vercel, to take a little less stress on this repository’s vercel instance 😃
It works now !! 😁
@anuraghazra hi, the access is still down. Do we have an expected time to fix it?
It’s back again
Happened again today!
self doing mine worked, I had to purge it though.
@HADMARINE, thanks for letting us know the instance was indeed down for about 10 minutes. @anuraghazra, can you look at the issues above if you find the time? Especially #2178 and #2159. It seems that only one of our PATs is still working. 🤔
Yea strange behaviour indeed the GitHub CDN should also respect
no-storeheader. I think 98f9045f987112bb3d4f1a0160f3e0d93ef5bd52 will fix the issues. Please feel free to comment below if it occurs again.We added an extra PAT. The issue should be fixed for now.
Thanks for letting us know. I created #1990, so we know the problem and somebody can take it on.
The issue should be fixed for now as we added three new Personal Access Tokens (PATs).
@rickstaa Okay, thanks for such a great thing!
Yeah, thanks, gotta deploy my own instance now
He is working on the fix, till then, he said to run it on our own vercel instance
Its happening again.
Same here, any known fix to this?
Here still out, i need do something?