Something went wrong while executing your query. This may be the result of a timeout #24631
-
Hi. My team’s repo is encountering this error when using the API to create a discussion thread as part of our app release candidate cutoff workflow. The discussion thread contains a list all of the commit hashes of all the PRs merged between the previous and upcoming versions. Here’s the query:
Here’s the input:
The
Here’s the output:
We ran the same action twice for the same input. It failed at both times. I’d like to point out that the discussion can span several hundred lines (usually about 150), listing out all of the PR merge commits that happened between the previous and next releases. In this particular case, it had close to 250 commit messages. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
@csantarin as the error says its most likely a timeout due to the complexity and amount of data involved in the query. |
Beta Was this translation helpful? Give feedback.
-
@byrneh You’re likely on to something. Our discussion
And this
This list alone amounted to near 250 lines for us at the time. Normally, it has been far less than that (some 150, definitely below 200). After removing Is there a known and documented limit to the |
Beta Was this translation helpful? Give feedback.
-
@csantarin the timeout problem can happen for any graphql that is complex and trying to receive too much data. |
Beta Was this translation helpful? Give feedback.
-
byrneh:
Pagination, eh? We’ll definitely have a look at that… My only concern now is how to chain it until all parts of the expected final Perhaps breaking the absurdly large |
Beta Was this translation helpful? Give feedback.
-
GitHub support confirming the replies here so far: Indeed, we sent a query We need to break it down into smaller requests. |
Beta Was this translation helpful? Give feedback.
-
I see this error when using postman or locally trying to make graphql queries against GitHub, but not when using the Github graphql explorer:
|
Beta Was this translation helpful? Give feedback.
@csantarin the timeout problem can happen for any graphql that is complex and trying to receive too much data.
Its something I have encountered when trying to perform audits that retrieve lost of data.
When using queries that are at risk of timeout I tune my query to retrieving smaller set of data and leverage paging.
Likely you need to do something similar in terms of breaking up into to chunk sizes that you are confident will not timeout.