github-readme-stats icon indicating copy to clipboard operation
github-readme-stats copied to clipboard

[Down Time] Card throws 'maximum retries exceeded' error

Open anuraghazra opened this issue 3 years ago • 157 comments

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

Custom badge

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:

image

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

anuraghazra avatar Nov 24 '21 18:11 anuraghazra

@anuraghazra hi, the access is still down. Do we have an expected time to fix it?

jincheng9 avatar Nov 25 '21 12:11 jincheng9

Now it's fine. Thanks.

jincheng9 avatar Nov 25 '21 12:11 jincheng9

Here still out, i need do something?

GabrielMendesdc avatar Nov 25 '21 12:11 GabrielMendesdc

Same here, any known fix to this?

Ari24-cb24 avatar Nov 25 '21 12:11 Ari24-cb24

Never imagined that my profile would be that much dependent on the GitHub stats , 😁. Hope that will be done soon, nice work man.

devmohit-live avatar Nov 25 '21 13:11 devmohit-live

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.

anuraghazra avatar Nov 25 '21 13:11 anuraghazra

Thanks a lot! mine is already bug fixed

GabrielMendesdc avatar Nov 25 '21 13:11 GabrielMendesdc

Thanks a lot! mine is already bug fixed

Yes, it's happening intermittently for some people, and for some it's not.

anuraghazra avatar Nov 25 '21 14:11 anuraghazra

Its happening again.

elli0t43 avatar Nov 25 '21 15:11 elli0t43

He is working on the fix, till then, he said to run it on our own vercel instance

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.

elli0t43 avatar Nov 25 '21 15:11 elli0t43

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

  1. It reduces loads on our vercel instance, we get almost 3-4Million requests per month which is hard to scale up.
  2. Your own PAT will give you more concrete stats including private stats
  3. 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

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.

anuraghazra avatar Nov 25 '21 15:11 anuraghazra

It works now !! 😁

Babu-Mohammed-Izhan avatar Nov 25 '21 15:11 Babu-Mohammed-Izhan

Yeah, thanks, gotta deploy my own instance now

Ari24-cb24 avatar Nov 25 '21 18:11 Ari24-cb24

Yes, it's happening intermittently for some people, and for some it's not.

Right, it is failing intermittently - checked around 6 PM IST. As @anuraghazra suggested already: deploying github-readme-stats on your own vercel instance would be a better option as of now.

debnathSD avatar Nov 26 '21 13:11 debnathSD

Just so you know, I just ran into this problem too.

kevspa avatar Jan 12 '22 15:01 kevspa

Yaah same problem here, now going forward I 'am planning to deploy this in personal vercel app :)

KodingKhurram avatar Jan 12 '22 15:01 KodingKhurram

suggest to deploy your own instance

jincheng9 avatar Jan 13 '22 03:01 jincheng9

Happening to me

codergautam avatar Jan 13 '22 20:01 codergautam

I'm facing the same issue as well

Mad880 avatar Jan 14 '22 12:01 Mad880

The same issue prevails here.

michalspano avatar Jan 14 '22 14:01 michalspano

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

anuraghazra avatar Jan 14 '22 19:01 anuraghazra

A friendly ping to indicate that this is issue is occurring again :|

rami3l avatar May 17 '22 08:05 rami3l

tagging @anuraghazra to let you know about the issue again

NirmalSilwal avatar May 17 '22 14:05 NirmalSilwal

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 :)

StreakingMan avatar May 17 '22 15:05 StreakingMan

@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?

rickstaa avatar May 18 '22 08:05 rickstaa

It looks like 9d2bfd9d8f00f6fc5229d0174a220ba04dbc4ee8 fixed this issue for now! 🚀 Please feel free to ping us if you experience any problems in the future. However, only comment if nobody has commented in the last three days or if you have information that could help us solve the problem. If there already is a recent comment or the label is attached, we are aware of the issue and are working on it. 🤓 Comments like "+1" and "same here" don't help anyone; they pressure the maintainer and spam their inbox. 💥

rickstaa avatar May 19 '22 10:05 rickstaa

"Maximum retries exceeded" right now

elenakrittik avatar May 19 '22 12:05 elenakrittik

@weerdy15 Thanks a lot for letting us know that this is still happening! I changed fixed to in-progress again.

In the meantime, please consider deploying your own Vercel instance to reduce server load (see github-readme-stats#deploy-on-your-own-vercel-instance). Keeping your fork up to date is just a click of a button. This process can also be automated using a GitHub action like github-repo-sync. I also added a GitHub feature request to ease the process of keeping a fork up to date (see https://github.com/github/feedback/discussions/16913).

image

rickstaa avatar May 19 '22 12:05 rickstaa

@rickstaa Okay, thanks for such a great thing!

elenakrittik avatar May 19 '22 12:05 elenakrittik

The issue should be fixed for now as we added three new Personal Access Tokens (PATs).

rickstaa avatar May 24 '22 05:05 rickstaa