Open Mr-KayJayDee opened 3 years ago
That's a bit odd, the query is not too complex. Can you try to run the query below in the explorer?
query {
viewer {
createdAt
issues {
totalCount
}
pullRequests {
totalCount
}
contributionsCollection {
contributionYears
}
gists(first: 100) {
totalCount
nodes {
stargazers {
totalCount
}
}
}
repositories(affiliations: OWNER, first: 100) {
totalCount
nodes {
stargazers {
totalCount
}
languages(first: 100) {
edges {
size
node {
color
name
}
}
}
}
}
repositoriesContributedTo {
totalCount
}
}
rateLimit { cost remaining resetAt }
}
Hello, thanks i got a result that seems not glitchy anymore.
{
"data": {
"viewer": {
"createdAt": "2019-01-11T14:05:31Z",
"issues": {
"totalCount": 30
},
"pullRequests": {
"totalCount": 49
},
"contributionsCollection": {
"contributionYears": [
2021,
2020,
2019
]
},
"gists": {
"totalCount": 2,
"nodes": [
{
"stargazers": {
"totalCount": 0
}
},
{
"stargazers": {
"totalCount": 0
}
}
]
},
"repositories": {
"totalCount": 6,
"nodes": [
{
"stargazers": {
"totalCount": 32
},
"languages": {
"edges": [
{
"size": 30434,
"node": {
"color": "#f1e05a",
"name": "JavaScript"
}
}
]
}
},
{
"stargazers": {
"totalCount": 0
},
"languages": {
"edges": []
}
},
{
"stargazers": {
"totalCount": 6
},
"languages": {
"edges": [
{
"size": 37417,
"node": {
"color": "#f1e05a",
"name": "JavaScript"
}
},
{
"size": 171,
"node": {
"color": "#89e051",
"name": "Shell"
}
}
]
}
},
{
"stargazers": {
"totalCount": 4
},
"languages": {
"edges": [
{
"size": 118,
"node": {
"color": "#89e051",
"name": "Shell"
}
},
{
"size": 4421,
"node": {
"color": "#f1e05a",
"name": "JavaScript"
}
}
]
}
},
{
"stargazers": {
"totalCount": 0
},
"languages": {
"edges": []
}
},
{
"stargazers": {
"totalCount": 0
},
"languages": {
"edges": [
{
"size": 1173,
"node": {
"color": "#563d7c",
"name": "CSS"
}
},
{
"size": 564,
"node": {
"color": "#e34c26",
"name": "HTML"
}
},
{
"size": 7912,
"node": {
"color": "#f1e05a",
"name": "JavaScript"
}
},
{
"size": 9570,
"node": {
"color": "#ff3e00",
"name": "Svelte"
}
}
]
}
}
]
},
"repositoriesContributedTo": {
"totalCount": 27
}
},
"rateLimit": {
"cost": 1,
"remaining": 4960,
"resetAt": "2021-05-05T15:34:17Z"
}
}
}
Can you try the action again?
I get the same error as before...
Can you post a link to the action run that failed?
I noticed that the TEMPLATE.md
file is missing. Can you add it? The action generates the README.md
file from it.
I'm not sure what the issue is. Could you fork the repo and debug the code to see what the issue is?
I am also getting this error: https://github.com/NikolayIT/NikolayIT/runs/3398331571
@NikolayIT can you also try to run the query manually? See https://github.com/teoxoy/profile-readme-stats/issues/8#issuecomment-832575309
If that works, could you report the issue to github and see what they say?
@teoxoy I ran the query in the explorer and get a proper response. Where should I report the error to GitHub?
You can report it here https://support.github.com/contact/bug-report
@teoxoy That's their answer:
Hi Nikolay,
Thanks for reaching out!
Looking at the logs, It looks like you are hitting timeouts on our GraphQL API. All API requests, both for the REST API and GraphQL API, have a 10 second limit on execution time. If that limit is reached for a request, the request is terminated. That behaviour is expected and we're not able to increase this 10-second limit.
This normally happens when the query used involves too much data, so the way to avoid timeouts is to write smaller queries. Requests that touch a lot of data should be split into several smaller queries and executed separately.
Hope this helps.
Regards,
Oluwaseun GitHub Support
Could you ask them which one of the queries triggered the limit? The queries that this action uses should be pretty simple. I don't see how they would run for longer than 10s.
@teoxoy Here is the response:
Hi Nikolay,
Thanks for the follow-up!
I'm afraid, we're unable to tell from the logs the GraphQL query that returned the error. I believe the Author of the GitHub action should have more information about this.
Regards,
Oluwaseun GitHub Support
There are 2 other queries that are dynamically built based on data (contributionYears
) from the first query. Can you try to build the first one manually and see what response you get?
This is the response of the main query:
Can you build it for me and I will try to run it?
{"data":{"viewer":{"createdAt":"2012-12-22T20:56:20Z","issues":{"totalCount":529},"pullRequests":{"totalCount":47},"contributionsCollection":{"contributionYears":[2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007]},"gists":{"totalCount":18,"nodes":[{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":2}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":1}},{"stargazers":{"totalCount":4}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":26}},{"stargazers":{"totalCount":2}},{"stargazers":{"totalCount":1}},{"stargazers":{"totalCount":1}},{"stargazers":{"totalCount":1}},{"stargazers":{"totalCount":0}},{"stargazers":{"totalCount":1}},{"stargazers":{"totalCount":2}},{"stargazers":{"totalCount":0}}]},"repositories":{"totalCount":43,"nodes":[{"stargazers":{"totalCount":31},"languages":{"edges":[{"size":523377,"node":{"color":"#178600","name":"C#"}},{"size":931451,"node":{"color":"#b07219","name":"Java"}}]}},{"stargazers":{"totalCount":22},"languages":{"edges":[{"size":92681,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":404},"languages":{"edges":[{"size":1268141,"node":{"color":"#178600","name":"C#"}},{"size":288015,"node":{"color":"#563d7c","name":"CSS"}},{"size":5518207,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":274913,"node":{"color":"#e34c26","name":"HTML"}},{"size":435,"node":{"color":"#596706","name":"Smalltalk"}},{"size":6107,"node":{"color":"#b07219","name":"Java"}},{"size":758,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":98,"node":{"color":"#9400ff","name":"ASP.NET"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":466860,"node":{"color":"#563d7c","name":"CSS"}},{"size":233642,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":2168131,"node":{"color":"#e34c26","name":"HTML"}},{"size":340570,"node":{"color":"#178600","name":"C#"}},{"size":340,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":101,"node":{"color":"#9400ff","name":"ASP.NET"}},{"size":128978,"node":{"color":"#c6538c","name":"SCSS"}},{"size":28988,"node":{"color":"#2b7489","name":"TypeScript"}}]}},{"stargazers":{"totalCount":194},"languages":{"edges":[{"size":576979,"node":{"color":"#178600","name":"C#"}},{"size":22114,"node":{"color":"#f34b7d","name":"C++"}},{"size":7005,"node":{"color":"#4F5D95","name":"PHP"}},{"size":975,"node":{"color":"#563d7c","name":"CSS"}},{"size":4,"node":{"color":"#e34c26","name":"HTML"}},{"size":8612,"node":{"color":"#878787","name":"Hack"}}]}},{"stargazers":{"totalCount":151},"languages":{"edges":[{"size":85595,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":13},"languages":{"edges":[{"size":4096,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":26,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":18506,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":69},"languages":{"edges":[{"size":143092,"node":{"color":"#178600","name":"C#"}},{"size":108187,"node":{"color":"#563d7c","name":"CSS"}},{"size":354,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":63769,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":81107,"node":{"color":"#178600","name":"C#"}},{"size":3045,"node":{"color":"#563d7c","name":"CSS"}},{"size":572,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":107,"node":{"color":"#9400ff","name":"ASP.NET"}},{"size":1478,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":34},"languages":{"edges":[{"size":51424,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":2},"languages":{"edges":[{"size":1528156,"node":{"color":"#178600","name":"C#"}},{"size":1805567,"node":{"color":"#563d7c","name":"CSS"}},{"size":222,"node":{"color":"#6a40fd","name":"ASP"}},{"size":5609362,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":2074797,"node":{"color":"#e34c26","name":"HTML"}},{"size":466,"node":{"color":"#d12127","name":"ApacheConf"}},{"size":16968,"node":{"color":"#4F5D95","name":"PHP"}},{"size":1061,"node":{"color":"#89e051","name":"Shell"}},{"size":16281,"node":{"color":"#3572A5","name":"Python"}},{"size":441,"node":{"color":"#596706","name":"Smalltalk"}},{"size":787,"node":{"color":"#C1F12E","name":"Batchfile"}}]}},{"stargazers":{"totalCount":31},"languages":{"edges":[{"size":287181,"node":{"color":"#178600","name":"C#"}},{"size":6474,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":8},"languages":{"edges":[{"size":56238,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":7},"languages":{"edges":[{"size":4502,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":1},"languages":{"edges":[{"size":48139,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":4},"languages":{"edges":[{"size":5689,"node":{"color":null,"name":"NSIS"}},{"size":889772,"node":{"color":"#178600","name":"C#"}},{"size":19176,"node":{"color":"#4F5D95","name":"PHP"}},{"size":2412,"node":{"color":"#e34c26","name":"HTML"}},{"size":971,"node":{"color":"#563d7c","name":"CSS"}}]}},{"stargazers":{"totalCount":4},"languages":{"edges":[{"size":18274,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":27},"languages":{"edges":[{"size":8412,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":96397,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":1506620,"node":{"color":"#178600","name":"C#"}},{"size":288015,"node":{"color":"#563d7c","name":"CSS"}},{"size":98,"node":{"color":"#6a40fd","name":"ASP"}},{"size":5518207,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":53,"node":{"color":"#e34c26","name":"HTML"}},{"size":758,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":435,"node":{"color":"#596706","name":"Smalltalk"}},{"size":6107,"node":{"color":"#b07219","name":"Java"}}]}},{"stargazers":{"totalCount":72},"languages":{"edges":[{"size":211794,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":6},"languages":{"edges":[{"size":143521,"node":{"color":"#178600","name":"C#"}},{"size":803,"node":{"color":"#563d7c","name":"CSS"}},{"size":273,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":302,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":19238,"node":{"color":"#e34c26","name":"HTML"}},{"size":115,"node":{"color":"#9400ff","name":"ASP.NET"}}]}},{"stargazers":{"totalCount":2},"languages":{"edges":[{"size":55615,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":49106,"node":{"color":"#563d7c","name":"CSS"}},{"size":67220,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":249384,"node":{"color":"#178600","name":"C#"}},{"size":53969,"node":{"color":"#012456","name":"PowerShell"}},{"size":166221,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":38},"languages":{"edges":[{"size":63285,"node":{"color":"#178600","name":"C#"}},{"size":5701,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":23},"languages":{"edges":[{"size":133304,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":188479,"node":{"color":"#178600","name":"C#"}},{"size":28856,"node":{"color":"#563d7c","name":"CSS"}},{"size":792,"node":{"color":"#6a40fd","name":"ASP"}},{"size":545321,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":722},"languages":{"edges":[{"size":76062,"node":{"color":"#178600","name":"C#"}},{"size":1407,"node":{"color":"#563d7c","name":"CSS"}},{"size":226,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":7745,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":7},"languages":{"edges":[{"size":184971,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":105},"languages":{"edges":[{"size":211791,"node":{"color":"#178600","name":"C#"}},{"size":5021,"node":{"color":"#563d7c","name":"CSS"}},{"size":37098,"node":{"color":"#e34c26","name":"HTML"}},{"size":2557,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":17},"languages":{"edges":[{"size":40499,"node":{"color":"#178600","name":"C#"}},{"size":13774,"node":{"color":"#e34c26","name":"HTML"}},{"size":5170,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":1107,"node":{"color":"#563d7c","name":"CSS"}}]}},{"stargazers":{"totalCount":67},"languages":{"edges":[{"size":631192,"node":{"color":"#178600","name":"C#"}},{"size":73097,"node":{"color":"#e34c26","name":"HTML"}},{"size":1042044,"node":{"color":"#563d7c","name":"CSS"}},{"size":354,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":306848,"node":{"color":"#178600","name":"C#"}},{"size":73514,"node":{"color":"#e34c26","name":"HTML"}},{"size":5927,"node":{"color":"#563d7c","name":"CSS"}},{"size":2424,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":132,"node":{"color":"#C1F12E","name":"Batchfile"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":174558,"node":{"color":"#178600","name":"C#"}},{"size":27251,"node":{"color":"#e34c26","name":"HTML"}},{"size":1155,"node":{"color":"#563d7c","name":"CSS"}},{"size":226,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":594951,"node":{"color":"#178600","name":"C#"}},{"size":156257,"node":{"color":"#e34c26","name":"HTML"}},{"size":803,"node":{"color":"#563d7c","name":"CSS"}},{"size":411,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":1561171,"node":{"color":"#178600","name":"C#"}},{"size":22346,"node":{"color":"#563d7c","name":"CSS"}},{"size":1100413,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":94560,"node":{"color":"#e34c26","name":"HTML"}},{"size":90046,"node":{"color":null,"name":"Rich Text Format"}},{"size":13449,"node":{"color":"#9400ff","name":"ASP.NET"}}]}},{"stargazers":{"totalCount":10},"languages":{"edges":[{"size":99645,"node":{"color":"#178600","name":"C#"}},{"size":387,"node":{"color":"#563d7c","name":"CSS"}},{"size":106,"node":{"color":"#6a40fd","name":"ASP"}},{"size":431460,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":26593,"node":{"color":"#e34c26","name":"HTML"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":1620431,"node":{"color":"#DA5B0B","name":"Jupyter Notebook"}},{"size":1721,"node":{"color":"#563d7c","name":"CSS"}},{"size":10736396,"node":{"color":"#e34c26","name":"HTML"}},{"size":26788,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":949688,"node":{"color":"#178600","name":"C#"}},{"size":347774,"node":{"color":"#e34c26","name":"HTML"}},{"size":498671,"node":{"color":"#563d7c","name":"CSS"}},{"size":353427,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":53,"node":{"color":"#C1F12E","name":"Batchfile"}},{"size":5810,"node":{"color":"#1d365d","name":"Less"}},{"size":213,"node":{"color":"#9400ff","name":"ASP.NET"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":459089,"node":{"color":"#178600","name":"C#"}},{"size":226744,"node":{"color":"#e34c26","name":"HTML"}},{"size":358927,"node":{"color":"#563d7c","name":"CSS"}},{"size":3445,"node":{"color":"#f1e05a","name":"JavaScript"}}]}},{"stargazers":{"totalCount":0},"languages":{"edges":[{"size":18113,"node":{"color":"#178600","name":"C#"}}]}},{"stargazers":{"totalCount":2},"languages":{"edges":[{"size":1147994,"node":{"color":"#4F5D95","name":"PHP"}},{"size":44492,"node":{"color":"#563d7c","name":"CSS"}},{"size":147240,"node":{"color":"#f1e05a","name":"JavaScript"}},{"size":3077,"node":{"color":"#0298c3","name":"Perl"}}]}},{"stargazers":{"totalCount":2},"languages":{"edges":[]}}]},"repositoriesContributedTo":{"totalCount":6}},"rateLimit":{"cost":1,"remaining":4998,"resetAt":"2021-08-25T10:20:31Z"}}}
{
viewer {
_2021: contributionsCollection(from: "2021-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2020: contributionsCollection(from: "2020-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2019: contributionsCollection(from: "2019-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2018: contributionsCollection(from: "2018-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2017: contributionsCollection(from: "2017-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2016: contributionsCollection(from: "2016-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2015: contributionsCollection(from: "2015-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2014: contributionsCollection(from: "2014-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2013: contributionsCollection(from: "2013-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2012: contributionsCollection(from: "2012-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2011: contributionsCollection(from: "2011-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2010: contributionsCollection(from: "2010-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2009: contributionsCollection(from: "2009-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2008: contributionsCollection(from: "2008-01-01T00:00:00.000Z") {
totalCommitContributions
}
_2007: contributionsCollection(from: "2007-01-01T00:00:00.000Z") {
totalCommitContributions
}
}
}
I waited 3-4 seconds but I got a response in the GraphQL explorer
can you try the 2nd one as well?
{
viewer {
_2021: contributionsCollection(from: "2021-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2020: contributionsCollection(from: "2020-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2019: contributionsCollection(from: "2019-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2018: contributionsCollection(from: "2018-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2017: contributionsCollection(from: "2017-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2016: contributionsCollection(from: "2016-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2015: contributionsCollection(from: "2015-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2014: contributionsCollection(from: "2014-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2013: contributionsCollection(from: "2013-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2012: contributionsCollection(from: "2012-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2011: contributionsCollection(from: "2011-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2010: contributionsCollection(from: "2010-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2009: contributionsCollection(from: "2009-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2008: contributionsCollection(from: "2008-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
_2007: contributionsCollection(from: "2007-01-01T00:00:00.000Z") {
totalPullRequestReviewContributions
}
}
}
Again it took 3-4 seconds and then I got the result. Are you running other queries? Or is it slower when ran on GitHub action?
No, only these 3 queries. It shouldn't run slower because the queries are sent and processed on github's servers. I'm really out of ideas...
@Mr-KayJayDee @NikolayIT are you guys still running into this issue?
Hello, I got an answer from github with this issue : teoxoy/profile-readme-stats#6 .
Here is:
How can I split into several queries ?
Thanks for the answer. 🙃