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

Something went wrong! Maximum retries exceeded

Open FleetAdmiralJakob opened this issue 2 years ago β€’ 13 comments

Describe the bug

image Everyone on my website cannot view the stats!

Expected behaviour

It just works

Screenshots / Live demo link

image

Additional context

My website: https://www.roessner.tech/about

FleetAdmiralJakob avatar Dec 15 '22 16:12 FleetAdmiralJakob

same

micash545 avatar Dec 15 '22 17:12 micash545

@FleetAdmiralJakob and @micash545 This is a known issue when the public server is overloaded (See #1471). The error should go away when the server is not rate-limited anymore. The best solution is to deploy your own Vercel instance (see https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance).

rickstaa avatar Dec 15 '22 20:12 rickstaa

Same issueπŸ‘€πŸ‘€ Thanks @rickstaa for the solution link πŸ‘

jaydeepkhatri avatar Dec 19 '22 15:12 jaydeepkhatri

I am facing the same issue but mine is a little different, I have deployed the project on vercel with all perfect procedures, and the project also working fine. but after a month the token gets expires and there is an error like this πŸ‘‡πŸ‘‡β¬‡οΈβ¬‡οΈ

image

so, on the vercel, I add another token & still showed the same error, I delete the project and redeploy it again with a new token however showing that same error.

What to do now? @rickstaa @anuraghazra Please help.

SAD0XER avatar Jan 05 '23 07:01 SAD0XER

I am facing the same issue but mine is a little different, I have deployed the project on vercel with all perfect procedures, and the project also working fine. but after a month the token gets expires and there is an error like this πŸ‘‡πŸ‘‡β¬‡οΈβ¬‡οΈ

image

so, on the vercel, I add another token & still showed the same error, I delete the project and redeploy it again with a new token however showing that same error.

What to do now? @rickstaa @anuraghazra Please help.

That's strange. The steps provided in the πŸ› οΈ Step-by-step guide on setting up your own Vercel instance of https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance should work. When I follow them I don't run into problems. πŸ€” Do you point the on your readme to your Vercel URL instead of the public one?

rickstaa avatar Jan 06 '23 10:01 rickstaa

Yes. I am pointing on my own vercel deployment. Not a public URL.

SAD0XER avatar Jan 06 '23 10:01 SAD0XER

Yes. I am pointing on my own vercel deployment. Not a public URL.

It looks like your Vercel instance no longer exists. I think you are replying to it. Ensure you enable the repo permission when creating the PAT and add it under the PAT_1 env variable in Vercel.

sad0xer's GitHub Statistics

[![sad0xer's GitHub Statistics](https://github-readme-statistics-sad0xer.vercel.app/api?username=sad0xer)](https://github.com/anuraghazra/github-readme-stats)```

rickstaa avatar Jan 06 '23 10:01 rickstaa

Yess! Finally done😁. I deploy it again with new domain. And it's working perfectly.

This is my 2nd try deployment. During the 1st try deployment, I was changed default domain to old domain.

(My old domain: github-readme-statistics-sad0xer.vercel.app)

So, my 1st question is, it failing to show stats card because I was changed default domain to old domain?

And 2nd question is what happens if my PAT expires? Does it affects to stats cards Or this stats project deployment?

I have these questions because I am completely new OS contributor on Github πŸ˜…

SAD0XER avatar Jan 06 '23 11:01 SAD0XER

For me it's kind of working, but not really.

I forked the repo, deployed it to Vercel with my own domain name, added the required env variable and on GitHub it still shows the error message.

Visiting https://stats.milovangudelj.com/api?username=milovangudelj shows the stats, but on my profile's README it's bugged.

Is the request being cached and it still shows the old one from before the redeployment? And if so, can I force a clean request in some way?

milovangudelj avatar Jan 06 '23 14:01 milovangudelj

@milovangudelj You are right. It could be the cache. You can purge the Vercel cache by waiting 4 hours or appending a random string to an API call (i.e. https://stats.milovangudelj.com/api?username=milovangudelj&random=random). However, since you recently deployed your Vercel instance, that's not the problem. You can also purge the GitHub CDN cache as explained in https://github.com/anuraghazra/github-readme-stats/issues/1471#issuecomment-1282709607.

rickstaa avatar Jan 06 '23 15:01 rickstaa

Yeah, that could have solved it. But I was probably too impatient cause now it's displayed properly. It was just a matter of time :clock1:

milovangudelj avatar Jan 06 '23 16:01 milovangudelj

what the heck its broken again 😭

kernaltrap8 avatar Jan 10 '23 19:01 kernaltrap8

@JamesIsWack it's due to the popularity of the repository, I'm afraid. The graphQL API limits are being reached again. The best way to fix this is to deploy your Vercel instance (see https://github.com/anuraghazra/github-readme-stats#deploy-on-your-own-vercel-instance).

@anuraghazra Were you able to check whether the PATs I sent you were still valid using https://github.com/anuraghazra/github-readme-stats/pull/2178? I can send you new PATs if you want.

rickstaa avatar Jan 10 '23 20:01 rickstaa

It should be solved for now! Feel free to comment on https://github.com/anuraghazra/github-readme-stats/issues/1471 if things strat to happen again.

rickstaa avatar Jan 22 '23 10:01 rickstaa