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


#1

Hi there,

We’re getting the following kind errors for many of our (would be) users that have a large number of repositories.

Something went wrong while executing your query. This is most likely a GitHub bug. Please include “CCA9:1595E:208AA19:547E99A:5981A36E” when reporting this issue.

The query is

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            
    }
    contributedRepositories(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
  }
}

and the variables for the initial request

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

The first request to the API always seems to go thru but retrieving the next pages using the cursors fail.

This bug essentially prevents many new users from trying our GitHub integration, so any help would be greatly appreciated!

Cheers,
Tuomas from screenful.com


#2

Hi @TuomasTammi,

Sorry for the delay here. We saw your request here and your ticket from github.com. We’re investigating the issue, and it appears to be related to the pinned repositories section of your query. A temporary workaround would be removing that part of the query. We’ll send you an update as soon as we have more information to share.


#3

Thanks @bswinnerton. Omitting pinned repositories solved the problem for now.


#4

I’m sorry for the delay here; this should now be fixed.