Bug: with pullRequest headRef for only some repos ("Something went wrong...")


I have a graphql query which works just fine against one repo but fails on another with this result:

  "data": null,
  "errors": [
      "message": "Something went wrong while executing your query. This is most likely a GitHub bug. Please include \"3651BBC9:0858:12E59222:583A2DA4\" when reporting this issue."

A stripped down version of the query that fails is:

query PRs {
  repository(owner: "rails", name: "rails") {
    pullRequests(last: 30) {
      pageInfo {
      edges {
        node {
          headRef {
            target {

But, it works fine if, for example, i change the repository line to

repository(owner: "rliebling", name: "fastrAck")

My actual usage related to private repos and with a more complete query.

Thanks in advance for any help.

Getting PR by global ID fails ("Something went wrong while executing your query")

@rliebling Definitely looks like we’ve got a bug on our end… I’ve opened up an issue internally so we can track this and try to fix it. Thanks for reporting it!


Hi there, @rliebling! This should now be fixed. Thanks for the report!