anuraghazra / github-readme-stats

:zap: Dynamically generated stats for your github readmes

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReadMe stats not working with "Could not fetch total commits" error message

Iamtsquare07 opened this issue · comments

Describe the bug

The readme stats for the GitHub contribution failed to load and give a link to this repo. The error message: Could not fetch total commits

Expected behavior

Was supposed to show stats including total commits

Screenshots / Live demo link

https://github-readme-stats.vercel.app/api
https://github.com/Iamtsquare07/issues-images/blob/main/Images/Screenshot%202023-09-17%20194120.png

Additional context

No response

Hey, @Iamtsquare07! Thanks for the report! You can see this when upstream GitHub API respond with error due to some reason during fetching stats card data. Should be resolve automatically after some time. Currently stats card in your profile works well.

@rickstaa I think that we can improve error message in case of total commits fetch error to contain words like "try again later". Error message should be more clear and tell user what he can do about the error. Are you up to approve pull request with such changes? Do you have a better idea about error message content?

Hey, @Iamtsquare07! Thanks for the report! You can see this when upstream GitHub API respond with error due to some reason during fetching stats card data. Should be resolve automatically after some time. Currently stats card in your profile works well.

@rickstaa I think that we can improve error message in case of total commits fetch error to contain words like "try again later". Error message should be more clear and tell user what he can do about the error. Are you up to approve pull request with such changes? Do you have a better idea about error message content?

@qwerty541 I agree that the current message could improved even further to prevent people from continuing to open new issues 👍🏻.

Thanks for providing the update @rickstaa yes it was resolved after a few minutes, and as @qwerty541 suggested if this is not a serious error that does not require any action from the user, then there shouldn't be an error directing users to open an issue since this could cause many not so important issues.

Describe the bug

The readme stats for the GitHub contribution failed to load and give a link to this repo. The error message: Could not fetch total commits

Expected behavior

Was supposed to show stats including total commits

Screenshots / Live demo link

https://github-readme-stats.vercel.app/api https://github.com/Iamtsquare07/issues-images/blob/main/Images/Screenshot%202023-09-17%20194120.png

Additional context

No response

Fix the URL with your configuration BR ;)

We merged #3255 to improve the error message.