Error when searching 1000+ repositories


#1

Error:

{
  "data": null,
  "errors": [
    {
      "message": "Something went wrong while executing your query. This is most likely a GitHub bug. Please include \"BD71:6665:14E0820:18A0866:5928F41F\" when reporting this issue."
    }
  ]
}

Query:

{
  search(first: 100, type: REPOSITORY, query: "stars:1..*", after: "Y3Vyc29yOjEwMDA=") {
    edges {
      node {
        ... on Repository {
          id
          name
        }
      }
    }
  }
}

#2

Hi @hsborges, thanks for the report! I’ve asked the team to investigate this. I can’t promise an ETA for when this will be addressed, but we’ll write back as soon as there’s any news.


#3

Got same issue here. Doesn’t matter what the query is.

    {
      search(query: "test", type: REPOSITORY, first: 100, after:"Y3Vyc29yOjEwMDA=" ) {
        repositoryCount
        pageInfo { 
            endCursor
            hasNextPage
        }  
        edges {
          node {
            ... on Repository {
              name
            }
      }
    }
  }
}
{
  "data": null,
  "errors": [
    {
      "message": "Something went wrong while executing your query. This is most likely a GitHub bug. Please include \"BF51:29AE:5B4B5AA:6D23637:5932A128\" when reporting this issue."
    }
  ]
}

#4

I got same issue here.

query GetMyStarredRepositories($number_of_repos: Int!, $after_cursor:String) {
  viewer {
    starredRepositories(first: $number_of_repos, after: $after_cursor, orderBy: {field: STARRED_AT, direction: DESC}) {
      totalCount
      pageInfo {
        endCursor
        hasNextPage
        hasPreviousPage
        startCursor
      }
      repositories: edges {
        starredAt
      }
    }
  }
  rateLimit {
    limit
    cost
    remaining
    resetAt
  }
}

#5

I found that this error occurs every time when I tried to fetch the 1014th record.


#6

Any updates on this? Two of my projects rely on this feature, I was hoping it would be resolved by the time I finalized them :confused:


#7

Did you find any alternative to search query? I’m stuck with the same issue.


#8

If you get creative, you can grab up to 2198 records, the first 1099 and the last 1099:

  1. first: 99
  2. first: 100, after: "Y3Vyc29yOjk5"
  3. first: 100, after: "Y3Vyc29yOjE5OQ=="
  1. first: 100, after: "Y3Vyc29yOjk5OQ=="
  2. last: 99
  3. last: 100, after: "Y3Vyc29yOjk5"
  4. last: 100, after: "Y3Vyc29yOjE5OQ=="
  1. last: 100, after: "Y3Vyc29yOjk5OQ=="

#9

:wave: Apologies for this, all. I just wanted to let you know that this is on our radar and we’re looking into it.


#10

Some news of this issue? I cant return more than 1000 repositories :frowning: