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

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_

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 140
  • Comments: 157 (7 by maintainers)

Commits related to this issue

Most upvoted comments

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

  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.

It’s not really.

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

We added an extra PAT. The issue should be fixed for now.

Its back lol

Experiencing the same:

image

It’s down again image

That looks like a different error I will check.

Thanks a lot! mine is already bug fixed

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:

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

Screenshot_2023-09-05-20-50-05-630_com kiwibrowser browser Please fix this ASAP

@FahadBinHussain Sometimes you can see these error because our public instance is being rate-limited by underlying GitHub API. You can deploy your own instance using your own GitHub API token in order to fix this or wait until the public instance is longer rate-limited.

Yeah, I have read that. However, I am currently facing certain circumstances which prevent me from deploying my own instance. That’s why I am seeking assistance here to rectify the issues with the public one.

But, thank you. Since the issue has been resolved.

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.app

now, I’m restoring it to the original

https://github-readme-stats.vercel.app

and 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

image

@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 the curl -X PURGE https://camo.githubusercontent.com/bdc4b7001ae4db64d42b0567e58c40584162aff3cd12f250869298dafec66d78/68747470733a2f2f6769746875622d726561646d652d73746174732e76657263656c2e6170702f6170693f686964655f72616e6b3d747275652673686f775f69636f6e733d7472756526696e636c7564655f616c6c5f636f6d6d6974733d66616c736526636f756e745f707269766174653d747275652664697361626c655f616e696d6174696f6e733d66616c7365267468656d653d6461726b266c6f63616c653d656e26686964655f626f726465723d7472756526637573746f6d5f7469746c653d476974687562c2a0537461747326757365726e616d653d4b656e74616b6f6f6e67 command 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:

Error! The value for maxDuration must be between 1 second and 10 seconds, in order to increase this limit upgrade your plan: https://vercel.com/pricing

So one has to edit vercel.json before if you plan to use the free tier:

{
  "functions": {
    "api/*.js": {
      "memory": 128,
-      "maxDuration": 30
+      "maxDuration": 10
    }
  },
  "redirects": [
    {
      "source": "/",
      "destination": "https://github.com/anuraghazra/github-readme-stats"
    }
  ]
}

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

This bug is improved when the following PRs are merged:

@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-store header. 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.

Anurag's GitHub stats

@noraj You are correct the video was done before we needed to increase the maxDuration parameter. Thanks for elaborating on that point! 👍🏻 However, we updated the text guide some time ago to include the maxDuration step (see step 6). Do you think the documentation can still be improved?

Yeah, for example there is no longer an import button on the dashboard but that instead 👍🏻

image

old import button

image

this is what you got on new project creation now (looking on you organization / namespace repository or a small link to import git repo external to your oAuth app)

image

old import form

etc. the interface and workflow totally changed so the video and screenshots must all be redone from scratch unfortunately

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

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.

Its happening again.

Same here, any known fix to this?

Here still out, i need do something?