Getting issues fails: "Something went wrong while executing your query"


#1

Hello,

There have been intermittent errors for a query in which we get issues and actions related to those issues. The error seems to depend on the repository it’s run against and also on some unknown factors. As of right now it fails when using the GraphQL client. Details below.

Something went wrong while executing your query. This is most likely a GitHub bug. Please include “E81B:34F7:3D386A:544B39:5909B83C” when reporting this issue

The query is

query getIssues($repoIds: [ID!]!, $issueBatchSize: Int!, 
  $eventBatchSize: Int!, $pullRequestCursor: String, $issueCursor: String) 
{
  nodes(ids: $repoIds) {
    id
    __typename
    ... on Repository {
      id
      name
      pullRequests(last: $issueBatchSize before: $pullRequestCursor) {
        pageInfo {
          startCursor
          hasPreviousPage
        }
        edges {
          node {
            ...pullRequestData
          }
        }
      }
      issues(last: $issueBatchSize before: $issueCursor) {
        pageInfo {
        startCursor	
          hasPreviousPage
        }
        edges {
          node {
            ...issueData
          }
        }
      }
    }
  }
}

fragment issueData on Issue {
  __typename
  id
  databaseId
  number
  title
  url
  createdAt
  updatedAt
  milestone {
    dueOn
  }
  assignees(first: 100) {
    edges {
      node {
        login
        name
        avatarURL
      }
    }
  }
  labels(first: 100) {
    edges {
      node {
        id
        name
        color
      }
    }
  }
  timeline(first: $eventBatchSize) {
    pageInfo {
      endCursor
      hasNextPage
    }
    edges {
      node {
        ...events
      }
    }
  }
}

fragment pullRequestData on PullRequest {
  __typename 
  id
  databaseId
  number
  title
  url
  createdAt
  updatedAt
  labels(first: 100) {
    edges {
      node {
        id
        name
        color
      }
    }
  }
  assignees(first: 100) {
    edges {
      node {
        login
        name
        avatarURL
      }
    }
  }
  timeline(first: $eventBatchSize) {
    pageInfo {
      endCursor
      hasNextPage
    }
    edges {
      node {
        ...events
      }
    }
  }
}

fragment events on Node {
  __typename
  ... on ClosedEvent {
    createdAt
  }
  ... on ReopenedEvent {
    createdAt
  }
  ... on UnassignedEvent {
    createdAt
    unassignedActor: actor {
      login
      name
      avatarURL
    }
  }
  ... on AssignedEvent {
    createdAt
    assignedActor: actor () {
      login
      name
      avatarURL
    }
  }
}

and the parameters are

{
  "repoIds": ["MDEwOlJlcG9zaXRvcnk3OTAzNTk="],
  "issueBatchSize": 10,
  "eventBatchSize": 10,
  "pullRequestCursor": null
}

#2

Sorry about that! I see the error in our logger. I’ve filed an issue for one of us to take a look at it ASAP.