updateCheckRun mutation fails arbitrarily #24486
-
The updateCheckRun mutation fails arbitrarily on some checks and returns null in the result.
for checkRunId ‘MDg6Q2hlY2tSdW40NDQxNjI4OA==’. This happens completely arbitrarily. The GitHub app credentials used to make this query has required permissions to the repo. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sanketsaurav, To clarify, when you say that it fails arbitrarily, you mean that you’re using the same input each time and it only fails some of the time, correct? Is this a particularly big query? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey @that-pat, I was able to figure this out – this was failing for queries which have particularly high number of annotations. Apparently, the number of annotations must not be more than 50 in one query. The GraphQL API fails silently in such case without throwing any errors, and just returns It would be great it the v4 documentation mentions this as well. |
Beta Was this translation helpful? Give feedback.
Hey @that-pat,
I was able to figure this out – this was failing for queries which have particularly high number of annotations. Apparently, the number of annotations must not be more than 50 in one query. The GraphQL API fails silently in such case without throwing any errors, and just returns
null
, as I mentioned. The REST API however shows the error properly, which is how I was able to debug this.It would be great it the v4 documentation mentions this as well.