GraphQL Query Result: Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug


#1

Following query fails when querying first 100 repositories however it is successful when querying first 20 repositories.

 query ($after_out: String, $after_in:String) {
           search(type:REPOSITORY, first:100, query:"stars:>250", after: $after_out){
             repositoryCount,
             nodes { 
               ... on Repository { 
                 nameWithOwner,
                 stargazers(first: 100, after: $after_in) {
                   edges {
                     starredAt
                     cursor
                     node {
                       login
                     }
                   }
                   totalCount
                   pageInfo {
                     endCursor
                     hasNextPage
                   }
                 }
               }
             }
           }
         }

It fails with the error:

{‘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 C651:12A4:DA7BD2:19C326F:5B3F5804 when reporting this issue.’}]}

Thanks in advance.


#2

Yes, this looks like a time-out. I’d recommend requesting fewer repositories at a time and iterating.