Pull Request error on Microsoft/dotnet - "Something went wrong while executing your query ..."


#1

Hi, this query throws the error: “Something went wrong while executing your query. This is most likely a GitHub bug. Please include “8E04:49CE:167C637:2ECFDF1:59795474” when reporting this issue.”

{
  node(id: "MDExOlB1bGxSZXF1ZXN0MjQyNzQwNzg") {
   	... on PullRequest {
      id
      repository { nameWithOwner }
      number
      headRepository { databaseId }
    }
  }
}

If I remove the headRepository connection the query runs as expected.


#2

Same error for ids: MDExOlB1bGxSZXF1ZXN0NTgyMDMxOA== and MDExOlB1bGxSZXF1ZXN0Mzc3MTc2MTU=


#3

Hi again :slight_smile: Thanks for those details, I’ve found the bug report on the backend and I’ll take a look!


#4

@rmosolgo, just to complement the initial report, I’m also getting this error when the user (headRepositoryOwner) does not exist.


#5

I’ve updated headRepository to properly return null in the cases above, how does that work for you?

Sorry, I didn’t understand what you mean about headRepositoryOwner, could you share an example of the problem you see there?


#6

Thanks @rmosolgo, I’m no longer getting this error when connecting to headRepository.

About headRepositoryOwner, this field is not in the original example, I’m sorry.
Consider the following example:

{
  node(id: "MDExOlB1bGxSZXF1ZXN0MTAxNTQ0MjY1") {
   	... on PullRequest {
      id
      repository { nameWithOwner }
      number
      headRepository { databaseId }
      headRepositoryOwner { login }
    }
  }
}

In this case, I get a similar error with the code “B09C:1595D:17147FC:2D93AB7:597F8323”.
Removing, or commenting, the headRepositoryOwner field the error is not thrown.
I suppose that the owner of the repository was also deleted and this is throwing this error.