New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[INFO] Common Error Codes (PLEASE CHECK FIRST) #1772
Comments
Please comment below if you think an error code is missing from this list 👍🏻. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@xorinzor Thanks for letting us know. I, however, meant #1471. Somebody already flagged the problem there, so I added the label to show that we are aware of the issue. I updated the text in this issue to:
For now, I would advise people to deploy their own Vercel instance to lower the server load. Please check this guide on how this is done |
This comment was marked as off-topic.
This comment was marked as off-topic.
@cristian-rincon Please limit the discussion of the |
@duaneking, thanks for your message. The [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide=javascript,html)](https://github.com/anuraghazra/github-readme-stats) Can you maybe share the syntax you are using and a screenshot of the error message you receive? |
Any attempt to use the hide param multiple times results in this error: In this case for the use of:
I see that this is fixable by simply using it only once, but the expectation I had was that options would be merged. You may want to update the docs or fix the issue to provide better compatibility. |
I understand that the error is a bit vague. 😐It is a javascript error that we do catch. In your case, it is thrown since you use the [![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=duaneking&hide=XML,Rich%20Text%20Format&theme=tokyonight&layout=compact&langs_count=8)](https://github.com/anuraghazra/github-readme-stats) |
Yes but the expectation I have as a web developer is that multiple args will be merged. Its a small thing, but should be documented or fixed. Thanks. |
I agree. Feel free to open a pull request or a feature request issue! 🚀 |
I would prefer implementing the merging of multiple arguments than document that we do not merge arguments. 🙂 |
|
@fzyzcjy I'm not sure why you received that error. You're using the correct syntax, and it seems to work on my end. Maybe something else went wrong on the Vercel server, and we are not catching the correct error. Feel free to comment again if the issue persists. [![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&count_private=true&locale=en)](https://github.com/anuraghazra/github-readme-stats) [![Fzyzcjy's GitHub stats](https://github-readme-stats.vercel.app/api?username=fzyzcjy&show_icons=true&count_private=true&locale=en)](https://github.com/anuraghazra/github-readme-stats) [![Fzyzcjy's GitHub stats](https://github-readme-stats.vercel.app/api?username=fzyzcjy&show_icons=true&locale=en&count_private=true)](https://github.com/anuraghazra/github-readme-stats) |
@rickstaa Hi thanks for the reply! It happens once in a while - e.g. it is fine now, but many times it just fails. |
@fzyzcjy I also sometimes noticed this behaviour on my card. Maybe because of the significant number of commits on your account the card rendering reached a timeout. Perhaps we need to optimize the code a bit. Feel free to open an issue if the problem shows up more frequently. |
@rickstaa Thanks for the reply :) |
https://github-readme-stats.vercel.app/api?username=abhi1693&count_private=true Not working for me |
Hi. Wanted to forward my question here. In short, the question is "how to hide C++ language from card"? The long version here: |
@abhi1693 I checked your account and it looks like an error is thrown while trying to fetch your data using the GraphQL API. I suspect this is due to a timeout or limit set by the GitHub team (see #1406). You can see this using the following syntax in the GitHub GraphQL explorer: query userInfo($login: String!) {
user(login: $login) {
name
login
contributionsCollection {
totalCommitContributions
restrictedContributionsCount
}
repositoriesContributedTo(
first: 1
contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]
) {
totalCount
}
pullRequests(first: 1) {
totalCount
}
openIssues: issues(states: OPEN) {
totalCount
}
closedIssues: issues(states: CLOSED) {
totalCount
}
followers {
totalCount
}
repositories(
first: 100
ownerAffiliations: OWNER
orderBy: {direction: DESC, field: STARGAZERS}
) {
totalCount
nodes {
stargazers {
totalCount
}
}
}
}
} {"login": "abhi1693"} I think it is best to add your problem to #1406 and contact the GitHub team to check what is going wrong while fetching data for your account. |
@rickstaa I checked with GitHub team and it's not working for me because I have too much data to fetch in a single go. My amount of commits alone is beyond what normal user has. So, it's safe to assume that this app won't work for me until some sort of smart mechanism is applied for such edge cases. |
The strange thing is that this timeout only occurs for me when using the GraphQL API through {
status: 502,
statusText: "Bad Gateway",
message: 'Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug.
Please include `A0B6:EC6F:57AF040:58F6D1E:63404A63` when reporting this issue.'
} When I try to fetch your data using the GraphQL explorer: query userInfo($login: String!) {
user(login: $login) {
name
login
contributionsCollection {
totalCommitContributions
restrictedContributionsCount
}
repositoriesContributedTo(
contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]
) {
totalCount
}
pullRequests {
totalCount
}
openIssues: issues(states: OPEN) {
totalCount
}
closedIssues: issues(states: CLOSED) {
totalCount
}
followers {
totalCount
}
repositories(ownerAffiliations: OWNER) {
totalCount
}
}
} {
"login": "abhi1693"
} I will correctly receive your data: {
"data": {
"user": {
"name": "Abhimanyu Saharan",
"login": "abhi1693",
"contributionsCollection": {
"totalCommitContributions": 295,
"restrictedContributionsCount": 16498
},
"repositoriesContributedTo": {
"totalCount": 83
},
"pullRequests": {
"totalCount": 105
},
"openIssues": {
"totalCount": 44
},
"closedIssues": {
"totalCount": 155
},
"followers": {
"totalCount": 15
},
"repositories": {
"totalCount": 62
}
}
}
} Maybe you can give the support |
* Fixed misspelling (anuraghazra#1885) * docs: incorrect cache documentation (anuraghazra#1889) * docs: note for temporary cache inc (anuraghazra#1890) * build: pin node version to >=13 (anuraghazra#1900) (anuraghazra#1901) This commit pins the node version to >=13 since node 12 is now end of life (see https://vercel.com/changelog/node-js-12-is-being-deprecated). * refactor: improve issues template Move FAQ notice to the top of the issues template to increase the change of users reading it. * refactor: fix bug in issues template * refactor: improve issues template Move part of the FAQ notice to the bottom so that it doesn't clutter the issues window. * refactor: fix typo in comment (anuraghazra#1912) * refactor: remove arrow function body braces (anuraghazra#1917) * refactor: update license year (anuraghazra#1735) * Updated Year * Update LICENSE / Revert to 2020 The MIT license [year] field should indicate the year the copyright was applied Co-authored-by: Rick Staa <[email protected]> Co-authored-by: Rick Staa <[email protected]> * refactor: improve level calculator (anuraghazra#1946) * test: fix gradient test by using more specific querySelector (anuraghazra#1954) * feat: add min width languages card (anuraghazra#1953) * Add min width to languages card * Add test for min width languages card * feat: increase lang card min width Co-authored-by: Rick Staa <[email protected]> * ci: add top-issues-dashboard action This commit adds the top issues dashboard action which creates a issue displaying the top issues of the week. * ci: fix title of top-issues action * ci: fix top-issues-action syntax (anuraghazra#1978) * ci: add top-issues-action argument * Fix NaN and undefined for empty profiles (anuraghazra#1965) * totalCommits: don't return NaN * rank: B+ should cover everyone Empty profile used to show "undefined" as the rank. Now empty profile shows "A+"... is B+ possible? * Remove unneeded underscore from Readme (anuraghazra#2003) * Add prettier check to CI (anuraghazra#1999) * Add prettier check to CI * Run prettier:format * ci: add empty issues closer action (anuraghazra#2004) Co-authored-by: Prashubh Atri <[email protected]> Co-authored-by: Prashubh Atri <[email protected]> * Fix anuraghazra#1170: Allow customizable width for GitHub Stats Card (anuraghazra#1334) * Change default stats card width with hide rank * Add tests for stats card with card_width * Add card_width Stats Card description to readme * fix: add icon width to stats-card min width calculation * fix: fixes rank circle padding problem This commit fixes a padding problem that was introduced in f9c0e0b. In the new code, the padding around the rank circle will be 50 when the stats card is bigger than 450. When it is smaller than 450 the left and right padding will shrink equally. * style: run prettier * tests: add extra stats 'card_width' tests This commit makes sure we also test the stats card width for the case that the 'show_icons' option is enabled. * style: run prettier Co-authored-by: rickstaa <[email protected]> * refactor: change formatting command * feat: add 'exclude_repo' option to stats card (anuraghazra#1450) This commit allows users to exclude repositories for the stats card using the `exclude_repo` option. * fix: add missing StatsCard types * feat(stats): add 'not_bold' option to stats card (anuraghazra#1468) * ci: change theme-preview action run condition (anuraghazra#1903) This commit makes sure that the theme-preview action only runs when a theme was added or changed. * Feature/grs 1955 change commonjs imports (anuraghazra#1995) * GRS-1955: Using ES6 import/export in src files * GRS-1955: Using ES6 import/export in test files * GRS-1955: Using ES6 import/export in themes index.js * GRS-1955: Readding blank line at end of top-languages-card.js * feat: fix test es6 import errors This commit makes sure jest is set-up to support es6. It also fixes several test errors and sorts the imports. * test: update test node version This commit makes sure node 16 is used in the github actions. * refactor: run prettier Co-authored-by: rickstaa <[email protected]> * fix: fix generate-theme-doc bug * ci: switch to npm ci in github actions (anuraghazra#2046) * fix: fix es6 import file extension * refactor: clean up imports * build: update package-lock file * build: fix wakatime json import bug (anuraghazra#2050) * build: fix vercel node version * build: remove engine property * fix: add json import workarround This commit adds a workaround for importing the `languageColors` JSON file. This needed to be done since Vercel uses v16.4, which does not support JSON file importing without the `experimental-json-modules` flag. See https://simonplend.com/import-json-in-es-modules/ for more information. The workaround can be found [here](https://stackoverflow.com/questions/66726365/how-should-i-import-json-in-node). * ci: filter anuraghazra#1772 from top-issues-dashboard * ci: add e2e vercel test action (anuraghazra#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 deployment successfully returns the cards. * test: add additional e2e card tests * test: improve e2e card tests This commit makes sure that the tests also check whether a valid cards are returned from the preview deployment. * ci: improve theme-preview actiot push (anuraghazra#2065) This commit makes sure that: - The theme-preview action can test multiple themes. - Fails if something goes wrong. - Requests changes if the theme does not adhere to the guidelines. - Approves the PR if the theme adheres to the guidelines. * ci: improve theme preview action (anuraghazra#2088) This commit makes sure that 4,5,6,8 digit hex colors are also accepted. It further also includes the border_color attribute in the tests. * ci: fix e2e test * chore: Update workflows to cache dependencies (anuraghazra#2083) * ci(label-pr): upgrade actions/labeler to v4 (anuraghazra#2080) Co-authored-by: rickstaa <[email protected]> * ci: fix e2e test * ci: add stale theme pull request closer action push (anuraghazra#2067) This commit adds the `stale-theme-pr-closer` closer action. This action is used to close theme pull requests with an `invalid` label that has been stale for a given number of `STALE_DAYS`. * feat: add transparent theme Adds a transparent theme with a contrast ratio of 4.5 on both black and white (see https://ux.stackexchange.com/a/86226). * feat: remove border color from transparent theme * ci: fix e2e test * feat: added default options to readme (anuraghazra#2051) * feat: added default options to readme * Update readme.md Co-authored-by: Rick Staa <[email protected]> * fix: added default values for stats card * style: some small readme changes Co-authored-by: Rick Staa <[email protected]> * ci: increase top-issues dashboard update frequency * style: improve code style * docs(theme): Auto update theme readme (anuraghazra#2091) Co-authored-by: Github Readme Stats Bot <[email protected]> * ci: fix small bugs in theme-preview action (anuraghazra#2093) * ci: fix small bugs in theme-preview action * ci: format code * ci: fix small bug in theme-preview action * docs: fix link to go India logo svg (anuraghazra#2085) * docs: format readme * docs: fix india care logo * Added Contributors Badge (anuraghazra#2096) * update default values in readme (anuraghazra#2094) * update default values in readme * docs: improve formatting * docs: improve readme punctation Co-authored-by: rickstaa <[email protected]> * fix: adding docstrings to the files where it was missing (anuraghazra#2101) * fix: adding docstrings to missing files * style: format code * style: improve formatting Co-authored-by: Jagruti Tiwari <[email protected]> Co-authored-by: rickstaa <[email protected]> * feat: default values for wakatime and language (anuraghazra#2103) * default values for wakatime and language * docs: update formatting Co-authored-by: rickstaa <[email protected]> * docs: improve readme syntax (anuraghazra#2106) * Update the Vercel deployement guide (anuraghazra#2102) * Update the Vercel deployement guide Updated Readme.md - The guide on deploying your own Vercel instance * docs: fix some small grammer errors Co-authored-by: rickstaa <[email protected]> * Fix card length during error (anuraghazra#2105) * Fix card length during error Fixes anuraghazra#1774 The size of the box should be 550px to allow 25px padding from both sides I found the width of the text using `getComputedTextLength()` method * fix: improve error card size Co-authored-by: rickstaa <[email protected]> * fix: fetch all repos for for the stats card (anuraghazra#2100) * fetch all stars * stop fetching when there are repos with zero stars * remove not needed parameters from the query * add docstring * removed not needed mock * style: update formatting Co-authored-by: rickstaa <[email protected]> * docs: fix readme logo alignment (anuraghazra#2112) * fix: temporary disable multi page star fetch * ci: improve theme preview action This commit makes sure that theme PRs that contain invalid JSON are labeled `invalid` and changes are requested. * style: improve formatting * style: improve small syntax error * Add format script to pre-commit hook (anuraghazra#2146) * Add format script to pre-commit hook * build: add husky prepare step * build: add lint-staged * build: add lint-staged Co-authored-by: rickstaa <[email protected]> * test: fix tests * docs: update readme * docs: add admonition boxes * docs: improve admonition boxes * docs: improve caching documentation * fix: adding doc strings to files in src folder where it was missing (anuraghazra#2129) * fix: adding doc strings to files in src folder where it was missing * refactor: add docstrings * style: run formatter Co-authored-by: rickstaa <[email protected]> * fix: improve graphql error handling * ci: updated issue template (anuraghazra#2127) * Updated issue templates * style: improve template formatting * style: update formatting Co-authored-by: rickstaa <[email protected]> * style: improve templates formatting * style: update formatting * test: burst cache in e2e tests (anuraghazra#2154) * test: increase stats card e2e timeout Co-authored-by: Fidel Alejandro Fernández Arias <[email protected]> Co-authored-by: tmt <[email protected]> Co-authored-by: Rick Staa <[email protected]> Co-authored-by: Cong <[email protected]> Co-authored-by: Kisaragi <[email protected]> Co-authored-by: Daniel <[email protected]> Co-authored-by: akmhmgc <[email protected]> Co-authored-by: Qi Mo Lin <[email protected]> Co-authored-by: Adil Hanney <[email protected]> Co-authored-by: John Sweeney <[email protected]> Co-authored-by: Steven <[email protected]> Co-authored-by: Prashubh Atri <[email protected]> Co-authored-by: Artem Kostiuk <[email protected]> Co-authored-by: rsk2 <[email protected]> Co-authored-by: Jongwoo Han <[email protected]> Co-authored-by: Oscar Dominguez <[email protected]> Co-authored-by: Jagruti Tiwari <[email protected]> Co-authored-by: Anurag Hazra <[email protected]> Co-authored-by: Github Readme Stats Bot <[email protected]> Co-authored-by: ianbromwichuos <[email protected]> Co-authored-by: Manan1612 <[email protected]> Co-authored-by: Ayushi Vishwakarma <[email protected]> Co-authored-by: Jagruti Tiwari <[email protected]> Co-authored-by: Aditya Shelke <[email protected]> Co-authored-by: Akshat Goel <[email protected]> Co-authored-by: nekiwo <[email protected]> Co-authored-by: Matteo Pierro <[email protected]> Co-authored-by: Taehyun Hwang <[email protected]> Co-authored-by: Shivam Kotak <[email protected]> Co-authored-by: Brian Choromanski <[email protected]>
Hi, the card for me (link: https://github.com/fzyzcjy) seems not to work anymore. It always shows the following. As mentioned before, this may be caused by the number of commits. However, originally the card can be successfully loaded every several retries, but now it seems never to be successfully loaded. :( |
@fzyzcjy Thanks for your bug report. Yea, I noticed that bug also on my README. I assume it happens for users for which we have to pull a lot of data from the GrapQL API. Although some users have even too much data for the GraphQL API request to complete (see #1406) for your account, the request on the server is successful. It simply takes too long for githubs CDN, resulting in a timeout when the card is not found in the cache. 😅 The card will then show up when you refresh the page again. This problem will be solved when #2179 is implemented, so it's best to subscribe to it. |
@rickstaa Hi thanks for the information! Btw the card frequently does not show up even after a few refreshes, but sometimes it does appear after a few refreshes. |
Yea, I also noticed that behaviour. I think it is best to go with the new GitHub Action I'm planning to implement for your account. 🤔 |
I'm not sure whether a large amount of data is the case, I'm also experiencing the same issue: |
@msaserj that's already solved, check: #2287 (comment) |
@dawwit0001, thank you for helping us maintain this repository 🚀. I checked your previous question, and that does happen to me also from time to time. It occurs because the Vercel function reaches GitHub's CDN timeout. The card, however, is correctly cached on the server and will show the next time somebody visits. This problem will be solved when I implement #2179. |
I had the same issue but when I just directly searched the address in the browser it worked. |
Answered in #3429 (comment) |
Hey, @Chhunneng! The problem is with GitHub's CDN. The only way to solve this is to create a GitHub action. You can track progress on this feature at #2179. |
Here you can find common error codes. Please check this list and the existing issues before creating a new issue. For commonly asked questions, see the FAQ.
General errors
Maximum retries exceeded
This is likely caused by the public Vercel instance reaching one of the Github GraphQL limits. Multiple PAT tokens have been used to overcome these limits (see github-readme-stats/blob/master/src/common/retryer.js) but due to the popularity of GitHub-readme-stats, they sometimes run out. The best solution is to deploy your own Vercel instance. Please check this guide on how this is done. You can find more information on this problem in #1471. You can also use #1471 to check if the Public Vercel instance is down and to let us know the limits are continuously being reached.
The text was updated successfully, but these errors were encountered: