Query failing when trying to open an issue

schema-request

#1

See this issue here.
This is the issue reference: 2CB9:37BE:2DF984:5D9F36:5B96C0C6

This is the query:

"{\"query\":\"query IssueOrPullRequest($owner: String!, $repo: String!, $number: Int!, $page_size: Int!, $before: String) {\\n  repository(owner: $owner, name: $repo) {\\n    __typename\\n    name\\n    hasIssuesEnabled\\n    viewerCanAdminister\\n    mergeCommitAllowed\\n    rebaseMergeAllowed\\n    squashMergeAllowed\\n    mentionableUsers(first: 50) {\\n      __typename\\n      nodes {\\n        __typename\\n        avatarUrl\\n        login\\n      }\\n    }\\n    defaultBranchRef {\\n      __typename\\n      name\\n    }\\n    issueOrPullRequest(number: $number) {\\n      __typename\\n      ... on Issue {\\n        timeline(last: $page_size, before: $before) {\\n          __typename\\n          pageInfo {\\n            __typename\\n            ...headPaging\\n          }\\n          nodes {\\n            __typename\\n            ... on Commit {\\n              ...nodeFields\\n              author {\\n                __typename\\n                user {\\n                  __typename\\n                  login\\n                  avatarUrl\\n                }\\n              }\\n              oid\\n              messageHeadline\\n            }\\n            ... on IssueComment {\\n              ...nodeFields\\n              ...reactionFields\\n              ...commentFields\\n              ...updatableFields\\n              ...deletableFields\\n            }\\n            ... on LabeledEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              label {\\n                __typename\\n                color\\n                name\\n              }\\n              createdAt\\n            }\\n            ... on UnlabeledEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              label {\\n                __typename\\n                color\\n                name\\n              }\\n              createdAt\\n            }\\n            ... on ClosedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              closer {\\n                __typename\\n                ... on Commit {\\n                  oid\\n                }\\n                ... on PullRequest {\\n                  mergeCommit {\\n                    __typename\\n                    oid\\n                  }\\n                }\\n              }\\n            }\\n            ... on ReopenedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on RenamedTitleEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              currentTitle\\n            }\\n            ... on LockedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on UnlockedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on CrossReferencedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              source {\\n                __typename\\n                ... on Issue {\\n                  title\\n                  number\\n                  closed\\n                  repository {\\n                    __typename\\n                    name\\n                    owner {\\n                      __typename\\n                      login\\n                    }\\n                  }\\n                }\\n                ... on PullRequest {\\n                  title\\n                  number\\n                  closed\\n                  merged\\n                  repository {\\n                    __typename\\n                    name\\n                    owner {\\n                      __typename\\n                      login\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            ... on ReferencedEvent {\\n              createdAt\\n              ...nodeFields\\n              refCommit: commit {\\n                __typename\\n                oid\\n              }\\n              actor {\\n                __typename\\n                login\\n              }\\n              commitRepository {\\n                __typename\\n                ...referencedRepositoryFields\\n              }\\n              subject {\\n                __typename\\n                ... on Issue {\\n                  title\\n                  number\\n                  closed\\n                }\\n                ... on PullRequest {\\n                  title\\n                  number\\n                  closed\\n                  merged\\n                }\\n              }\\n            }\\n            ... on RenamedTitleEvent {\\n              ...nodeFields\\n              createdAt\\n              currentTitle\\n              previousTitle\\n              actor {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on AssignedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              user {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on UnassignedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              user {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on MilestonedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              milestoneTitle\\n            }\\n            ... on DemilestonedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              milestoneTitle\\n            }\\n          }\\n        }\\n        milestone {\\n          __typename\\n          ...milestoneFields\\n        }\\n        ...reactionFields\\n        ...commentFields\\n        ...lockableFields\\n        ...closableFields\\n        ...labelableFields\\n        ...updatableFields\\n        ...nodeFields\\n        ...assigneeFields\\n        number\\n        title\\n      }\\n      ... on PullRequest {\\n        timeline(last: $page_size, before: $before) {\\n          __typename\\n          pageInfo {\\n            __typename\\n            ...headPaging\\n          }\\n          nodes {\\n            __typename\\n            ... on Commit {\\n              ...nodeFields\\n              author {\\n                __typename\\n                user {\\n                  __typename\\n                  login\\n                  avatarUrl\\n                }\\n              }\\n              oid\\n              messageHeadline\\n            }\\n            ... on IssueComment {\\n              ...nodeFields\\n              ...reactionFields\\n              ...commentFields\\n              ...updatableFields\\n              ...deletableFields\\n            }\\n            ... on LabeledEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              label {\\n                __typename\\n                color\\n                name\\n              }\\n              createdAt\\n            }\\n            ... on UnlabeledEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              label {\\n                __typename\\n                color\\n                name\\n              }\\n              createdAt\\n            }\\n            ... on ClosedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              closer {\\n                __typename\\n                ... on Commit {\\n                  oid\\n                }\\n                ... on PullRequest {\\n                  mergeCommit {\\n                    __typename\\n                    oid\\n                  }\\n                }\\n              }\\n            }\\n            ... on ReopenedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on RenamedTitleEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              currentTitle\\n            }\\n            ... on LockedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on UnlockedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on MergedEvent {\\n              ...nodeFields\\n              mergedCommit: commit {\\n                __typename\\n                oid\\n              }\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n            }\\n            ... on PullRequestReviewThread {\\n              comments(first: $page_size) {\\n                __typename\\n                nodes {\\n                  __typename\\n                  ...reactionFields\\n                  ...nodeFields\\n                  ...commentFields\\n                  path\\n                  diffHunk\\n                }\\n              }\\n            }\\n            ... on PullRequestReview {\\n              ...nodeFields\\n              ...commentFields\\n              state\\n              submittedAt\\n              author {\\n                __typename\\n                login\\n              }\\n              comments {\\n                __typename\\n                totalCount\\n              }\\n            }\\n            ... on CrossReferencedEvent {\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              createdAt\\n              source {\\n                __typename\\n                ... on Issue {\\n                  title\\n                  number\\n                  closed\\n                  repository {\\n                    __typename\\n                    name\\n                    owner {\\n                      __typename\\n                      login\\n                    }\\n                  }\\n                }\\n                ... on PullRequest {\\n                  title\\n                  number\\n                  closed\\n                  merged\\n                  repository {\\n                    __typename\\n                    name\\n                    owner {\\n                      __typename\\n                      login\\n                    }\\n                  }\\n                }\\n              }\\n            }\\n            ... on ReferencedEvent {\\n              createdAt\\n              ...nodeFields\\n              actor {\\n                __typename\\n                login\\n              }\\n              commitRepository {\\n                __typename\\n                ...referencedRepositoryFields\\n              }\\n              subject {\\n                __typename\\n                ... on Issue {\\n                  title\\n                  number\\n                  closed\\n                }\\n                ... on PullRequest {\\n                  title\\n                  number\\n                  closed\\n                  merged\\n                }\\n              }\\n            }\\n            ... on RenamedTitleEvent {\\n              ...nodeFields\\n              createdAt\\n              currentTitle\\n              previousTitle\\n              actor {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on AssignedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              user {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on UnassignedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              user {\\n                __typename\\n                login\\n              }\\n            }\\n            ... on ReviewRequestedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              requestedReviewer {\\n                __typename\\n                ... on Actor {\\n                  login\\n                }\\n              }\\n            }\\n            ... on ReviewRequestRemovedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              requestedReviewer {\\n                __typename\\n                ... on Actor {\\n                  login\\n                }\\n              }\\n            }\\n            ... on MilestonedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              milestoneTitle\\n            }\\n            ... on DemilestonedEvent {\\n              ...nodeFields\\n              createdAt\\n              actor {\\n                __typename\\n                login\\n              }\\n              milestoneTitle\\n            }\\n          }\\n        }\\n        reviewRequests(first: $page_size) {\\n          __typename\\n          nodes {\\n            __typename\\n            requestedReviewer {\\n              __typename\\n              ... on Actor {\\n                login\\n                avatarUrl\\n              }\\n            }\\n          }\\n        }\\n        commits(last: 1) {\\n          __typename\\n          nodes {\\n            __typename\\n            commit {\\n              __typename\\n              ...commitContext\\n            }\\n          }\\n        }\\n        milestone {\\n          __typename\\n          ...milestoneFields\\n        }\\n        ...reactionFields\\n        ...commentFields\\n        ...lockableFields\\n        ...closableFields\\n        ...labelableFields\\n        ...updatableFields\\n        ...nodeFields\\n        ...assigneeFields\\n        number\\n        title\\n        merged\\n        baseRefName\\n        changedFiles\\n        additions\\n        deletions\\n        mergeable\\n        mergeStateStatus\\n      }\\n    }\\n  }\\n}fragment headPaging on PageInfo {\\n  __typename\\n  hasPreviousPage\\n  startCursor\\n}fragment nodeFields on Node {\\n  __typename\\n  id\\n}fragment reactionFields on Reactable {\\n  __typename\\n  viewerCanReact\\n  reactionGroups {\\n    __typename\\n    viewerHasReacted\\n    users(first: 3) {\\n      __typename\\n      nodes {\\n        __typename\\n        login\\n      }\\n      totalCount\\n    }\\n    content\\n  }\\n}fragment commentFields on Comment {\\n  __typename\\n  author {\\n    __typename\\n    login\\n    avatarUrl\\n  }\\n  editor {\\n    __typename\\n    login\\n  }\\n  lastEditedAt\\n  body\\n  createdAt\\n  viewerDidAuthor\\n}fragment updatableFields on Updatable {\\n  __typename\\n  viewerCanUpdate\\n}fragment deletableFields on Deletable {\\n  __typename\\n  viewerCanDelete\\n}fragment referencedRepositoryFields on RepositoryInfo {\\n  __typename\\n  name\\n  owner {\\n    __typename\\n    login\\n  }\\n}fragment milestoneFields on Milestone {\\n  __typename\\n  number\\n  title\\n  url\\n  dueOn\\n  openCount: issues(states: [OPEN]) {\\n    __typename\\n    totalCount\\n  }\\n  totalCount: issues {\\n    __typename\\n    totalCount\\n  }\\n}fragment lockableFields on Lockable {\\n  __typename\\n  locked\\n}fragment closableFields on Closable {\\n  __typename\\n  closed\\n}fragment labelableFields on Labelable {\\n  __typename\\n  labels(first: 30) {\\n    __typename\\n    nodes {\\n      __typename\\n      color\\n      name\\n    }\\n  }\\n}fragment assigneeFields on Assignable {\\n  __typename\\n  assignees(first: $page_size) {\\n    __typename\\n    nodes {\\n      __typename\\n      login\\n      avatarUrl\\n    }\\n  }\\n}fragment commitContext on Commit {\\n  __typename\\n  id\\n  status {\\n    __typename\\n    contexts {\\n      __typename\\n      id\\n      context\\n      state\\n      creator {\\n        __typename\\n        login\\n        avatarUrl\\n      }\\n      description\\n      targetUrl\\n    }\\n    state\\n  }\\n}\",\"variables\":{\"owner\":\"lkzhao\",\"repo\":\"ElasticTransition\",\"number\":42,\"page_size\":30,\"before\":null

#2

Thanks for reporting this issue @BasThomas! We’ve opened an internal issue to fix the problem and will report back here when it is fixed.


#3

@BasThomas this should now be fixed. Let us know if you encounter any other issues with it.


#4

Awesome! Seems to work indeed. Thanks @rlinehan :slight_smile: