[BUG] [GraphQL] Unpredictable behaviour when fetching multiple users data

Sometimes GitHub API v4 will unexpectedly respond with an internal server error 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 37CF:7DDC:6BF03A5:7BE9BE5:5FE90B21 when reporting this issue.

I’d say it happens about 40% of the time.

Here’s the query I’m using:

{
  user0: user(login: "subesokun") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user1: user(login: "jamespamplin") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user2: user(login: "mserinjane") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user3: user(login: "michaeldjeffrey") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user4: user(login: "SAAirey") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user5: user(login: "lyphtec") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user6: user(login: "jdanyow") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user7: user(login: "matthewp") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user8: user(login: "cvrebert") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user9: user(login: "Bubblyworld") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user10: user(login: "jerrytk") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user11: user(login: "tshrestha") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user12: user(login: "MajorBreakfast") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user13: user(login: "AshleyGrant") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user14: user(login: "allouis") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user15: user(login: "forresto") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user16: user(login: "speigg") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user17: user(login: "jamesgorrie") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user18: user(login: "jedd-ahyoung") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user19: user(login: "robianmcd") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user20: user(login: "floatdrop") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user21: user(login: "wprater") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user22: user(login: "zclark") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user23: user(login: "helios1138") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user24: user(login: "johnsoftek") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user25: user(login: "jsen-") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user26: user(login: "zsmaguc") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user27: user(login: "alexander-fenster") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user28: user(login: "sgtcoolguy") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
  user29: user(login: "filipesilva") {
    login
    repositoriesContributedTo(includeUserRepositories: true) {
      totalCount
    }
    followers {
      totalCount
    }
    repositories {
      totalCount
    }
    gists {
      totalCount
    }
  }
}

Provided query fetches 30 users, but same problems appear when trying more (I’ve tried 100) or less (20).