Bug: Something went wrong while executing your query


#1
query {
                  repository(owner:"owner", name:"repo-name") {
                    nameWithOwner
                    milestones(first:100 after: null) {
                      nodes {
                        id
                        dueOn
                        creator {
                          login
                        }
                        createdAt
                        url
                        title
                        description
                        state
                        closed
                        closedAt
                        updatedAt
                      }
                      pageInfo {
                        hasNextPage
                        endCursor
                      }
                    }
                    issues(first: 100, orderBy: {field: UPDATED_AT, direction: ASC}, after: "Y3Vyc29yOnYyOpHOCvXABC==") {
                      nodes {
                        title
                        url
                        assignees(first: 100) {
                          nodes {
                            login
                          }
                        }
                        state
                        participants(first: 100) {
                          nodes {
                            login
                          }
                        }
                        createdAt
                        updatedAt
                        closedAt
                        closedAt
                        author {
                          login
                        }
                        labels(first: 100) {
                          nodes {
                            name
                          }
                        }
                        projectCards(first: 100) {
                          nodes {
                            id
                            note
                            creator {
                              login
                            }
                            createdAt
                            updatedAt
                            state
                            url
                            project {
                              url
                            }
                          }
                          pageInfo {
                            hasNextPage
                            endCursor
                          }
                        }
                        comments(last: 1) {
                          nodes {
                            publishedAt
                            author {
                              login
                            }
                          }
                        }
                      }
                      pageInfo {
                        hasNextPage
                        endCursor
                      }
                    }
                    pullRequests(first: 100 after: "Y3Vyc29yOnYyOpHODBFABC==") {
                      nodes {
                        createdAt
                        closedAt
                        updatedAt
                        state
                        assignees(first: 100) {
                          nodes {
                            login
                          }
                        }
                        labels(first: 100) {
                          nodes {
                            name
                          }
                        }
                        title
                        author {
                          login
                        }
                      }
                      pageInfo {
                        hasNextPage
                        endCursor
                      }
                    }
                    projects(first: 100 after: null) {
                      nodes {
                        url
                        state
                        name
                        number
                        createdAt
                        closedAt
                        updatedAt
                        creator {
                          login
                        }
                      }
                      pageInfo {
                        hasNextPage
                        endCursor
                      }
                    }
                    releases(first: 100 after: null) {
                      nodes {
                        id
                        url
                        tag {
                          name
                          id
                        }
                        name
                        author {
                          login
                        }
                        updatedAt
                        createdAt
                        publishedAt
                        isPrerelease
                        isDraft
                      }
                      pageInfo {
                        hasNextPage
                        endCursor
                      }
                    }
                  }
                }
ERROR:root:{u'errors': [{u'message': u'Something went wrong while executing your query. Please include `A860:593D:F7E189:1172AB0:5B525365` when reporting this issue.'}], u'data': None}

ERROR:root:{u’errors’: [{u’message’: u’Something went wrong while executing your query. Please include A860:593D:F7E189:1172AB0:5B525365 when reporting this issue.’}], u’data’: None}

Note: owner, repo name and cursors have been modified/removed as they belong to an organization’s data.

The error occurs when using previously saved end cursors in a query to paginate for new data.

UPDATE: narrowed it down to both cursors being the last cursors with no nodes after them. If that’s the case, this bug occurs.

e.g. issues has nextpage = False and pullrequest nextpage = True -> no error when paginating with endcursors
When both are false and I use the endcursors for each, the bug occurs. It should instead only show me an empty list.


#2

:wave: So sorry for the delay here @amnrahman, this fell off our radar. This does indeed seem to be a bug, and thank you for your investigation notes. I’ve opened up an internal issue to investigate a fix.


#3

Thanks @bswinnerton! Also experiencing the same error towards the end of paginating through this type of query:

query {
                repository(owner: "zyx", name: "xyz") {
                    nameWithOwner
                    issues(first: 100, after: "CURSOR123", orderBy: {field: CREATED_AT, direction: DESC}) {
                      nodes {
                        timeline(first: 100, since:null) {
                          nodes {
                            ... on CrossReferencedEvent {
                              referencedAt
                              actor {
                                login
                              }
                              resourcePath
                              willCloseTarget
                              source {
                                __typename
                                ... on Issue {
                                  url
                                  repository{nameWithOwner}
                                }
                                ... on PullRequest {
                                  id
                                  repository{nameWithOwner}
                                }
                              }
                              target {
                                __typename
                                ... on Issue {
                                  url
                                  repository {
                                    nameWithOwner
                                  }
                                }
                                ... on PullRequest {
                                  url
                                  repository {
                                    nameWithOwner
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                      pageInfo {
                        endCursor
                        hasNextPage
                      }
                    }
                  
                  }
                  rateLimit{limit, cost, resetAt, remaining}
                }

Exception: {u’errors’: [{u’message’: u’Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include EE59:171F:1981C:1FC42:5B7DA554 when reporting this issue.’}], u’data’: u’null’}