Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

updateCheckRun mutation fails arbitrarily

Solved! Go to Solution.

The updateCheckRun mutation fails arbitrarily on some checks and returns null in the result.

 

query = """
        mutation($input:UpdateCheckRunInput!) {
            updateCheckRun(input:$input) {
                checkRun {
                    databaseId
                    conclusion
                    status
                }
            }
        }
        """

for checkRunId 'MDg6Q2hlY2tSdW40NDQxNjI4OA=='.

 

This happens completely arbitrarily. The GitHub app credentials used to make this query has required permissions to the repo.

2 Replies
Community Manager
Message 2 of 3

Re: updateCheckRun mutation fails arbitrarily

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!

Solution
Copilot Lvl 2
Message 3 of 3

Re: updateCheckRun mutation fails arbitrarily

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.