Getting Pull Requests using GraphQL returns error

When I run the following query I get an error message

Something went wrong while executing your query. Please include 8BE2:20B3:C6F6EC:1AA7974:5D14EF90 when reporting this issue

{
  repository(owner: "dotnet", name: "corefx") {
    pullRequests(first: 100, states: MERGED, after: "Y3Vyc29yOnYyOpK5MjAxNi0xMi0yMFQxNjoxODozNi0wODowMM4F5FZz", orderBy: {direction: ASC, field: CREATED_AT}) {
      pageInfo {
        hasNextPage
        endCursor
      }
      edges {
        node {
          author {
            login
          }
          number
          mergedAt
          mergeCommit {
            oid
          }
          reviews(first: 100) {
            nodes {
              author {
                login
              }
            }
          }
          files(first: 100) {
            nodes {
              additions
              deletions
              path
            }
            totalCount
          }
        }
      }
    }
  }
}

Could you please tell me why I’m getting this error?

Hi @mirsaeedi form the message you are seeing it sounds like the query might be just timing out. If it take longer than 10 seconds to finish GitHub would return this error.

1 Like