Something went wrong while executing this query


#1

Hi,
We’re getting the following error

"Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `D0AC:42E3:1FC3A14:4647DE3:5BA8C9C4` when reporting this issue."

query:

query getRepos ($batchSize: Int!, $starredBatchSize: Int!, $cOwned: String, $cContributed: 
  String, $cStarred: String, $cPinned: String) 
{
	rateLimit {
    limit
    cost
    remaining
  }
  viewer {
    repositories(first: $batchSize, after: $cOwned) {
    	...repoData            
    }
    repositoriesContributedTo(first: $batchSize, after: $cContributed) {
    	...repoData            
    }
    starredRepositories(first: $starredBatchSize, after: $cStarred) {
    	...starredRepoData            
    }    
    pinnedRepositories(first: $batchSize, after: $cPinned) {
    	...repoData            
    }    
    organizations (first: $batchSize) {
      edges {
        node {
          id
          name
          repositories (first: $batchSize) {
            ...repoData            
          }
        }
      }      
    }
  }
}

fragment starredRepoData on StarredRepositoryConnection {
  pageInfo {
    endCursor
    hasNextPage
  }
  edges {
    node {
		...coreRepoData    
    }
  }
}

fragment repoData on RepositoryConnection {
  pageInfo {
    endCursor
    hasNextPage
  }
  edges {
    node {
	    ...coreRepoData    
    }
  }
}

fragment coreRepoData on Repository {
  id
  nameWithOwner
  issues (first: 1) {
    totalCount
  }
  pullRequests (first: 1) {
    totalCount
  }
}

variables:

{"batchSize":99,
  "starredBatchSize":99,
  "cOwned":null,
  "cContributed":null,
  "cStarred":null,
  "cPinned": null
}

When I changing starredBatchSize to 0 or 20 then it works.


"Something went wrong..." errors when querying repositories
#2

:wave: @nairihar ,

I took a quick look at this and it looks like your approach to work around this is the right one. The query did actually time out, so trying to fetch less each time hopefully helps!