Potential Bugs: Collection of various bugs (MRE and codes)

I got this message.

HTTP.ExceptionRequest.StatusError(502, "POST", "/graphql", HTTP.Messages.Response:
"""
HTTP/1.1 502 Bad Gateway
Server: GitHub.com
Date: Wed, 21 Aug 2019 23:14:23 GMT
Content-Type: application/json
Transfer-Encoding: chunked
X-GitHub-Request-Id: 9E80:27E3:121DB26:22C9FEC:5D5DD02F

{
   "data": null,
   "errors":[
      {
         "message":"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `9E80:27E3:121DB26:22C9FEC:5D5DD02F` when reporting this issue."
      }
   ]
}
""")

Hi @nosferican,

Does that always happen for your request or was this a one-off? There were some issues yesterday that could have caused this, so try again today please.

The one I mentioned before was a one off, however I found one that seems to be persistent.

query ($license_created: String!, $cursor: String!) {
  ...RateLimit
  search(query: $license_created, type: REPOSITORY, first: 100, after: $cursor) {
    ...SearchLogic
  }
}

fragment RateLimit on Query {
  rateLimit {
    remaining
    resetAt
  }
}

fragment SearchLogic on SearchResultItemConnection {
  repositoryCount
  pageInfo {
    endCursor
    hasNextPage
  }
  nodes {
    ... on Repository {
      isPrivate
      databaseId
      nameWithOwner
      createdAt
      isArchived
      isFork
      isMirror
    }
  }
}

With the following variables,

{
  "license_created": "license:MIT created:2016-03-02T14:27:53+00:00..2016-03-02T21:51:03+00:00",
  "cursor": "Y3Vyc29yOjEwMA=="
}

 everything seems fine, but going to the next page

{
  "license_created": "license:MIT created:2016-03-02T14:27:53+00:00..2016-03-02T21:51:03+00:00",
  "cursor": "Y3Vyc29yOjIwMA=="
}

yields

{
  "errors": [
    {
      "message": "Something went wrong while executing your query. Please include `D214:05E1:2218E7E:410261F:5D5FECBD` when reporting this issue."
    }
  ]
}

Here is another potential bug,

query ($owner: String!, $name: String!, $until: GitTimestamp!) {
  ...RateLimit
  ...Repo
}

fragment RateLimit on Query {
  rateLimit {
    remaining
    resetAt
  }
}

fragment Repo on Query {
  repository(owner: $owner, name: $name) {
    defaultBranchRef {
      target {
        ... on Commit {
          history(first: 100, until: $until) {
            ...CommitHistory
          }
        }
      }
    }
  }
}

fragment CommitHistory on CommitHistoryConnection {
  totalCount
  pageInfo {
    endCursor
    hasNextPage
  }
  nodes {
    author {
      user {
        login
      }
    }
    oid
    committedDate
    additions
    deletions
  }
}

with variables

{
  "owner": "magisterquis",
  "name": "sshhipot",
  "until": "2019-08-15T00:00:00-04:00"
}

 Here is the tracker, 

C184:3258:135D96:1B7CB4:5D6047DD