Something went wrong while executing your query. This may be the result of a timeout, or it could be a GitHub bug. Please include `C6C5:4B1D:73113:9BBC7:618D42E9` when reporting this issue

HTTP: 502
server: GitHub.com
date: Thu, 11 Nov 2021 16:21:08 GMT
content-type: application/json
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
access-control-allow-origin: *
vary: Accept-Encoding, Accept, X-Requested-With
x-github-request-id: C6C5:4B1D:73113:9BBC7:618D42E9
[end of headers]
{
“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 C6C5:4B1D:73113:9BBC7:618D42E9 when reporting this issue.”
}
]
}
com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code 502 ({ "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 C6C5:4B1D:73113:9BBC7:618D42E9 when reporting this issue." } ] } )

Here is my query:

fragment RepositoryListItemFragment on Repository {
    description
    id
    name
    nameWithOwner
    repositoryOwner : owner {
        ... RepositoryOwner
    }
    parent {
        ... ParentOfForkedRepository
    }
    primaryLanguage {
        ... Language
    }
    forks {
        totalCount
    }
    stargazers {
        totalCount
    }
}

fragment PageInfo on PageInfo {
    endCursor
    hasNextPage
    hasPreviousPage
    startCursor
}

query SearchRepositories($queryWords: String!, $first: Int, $last: Int, $after: String, $before: String) {
    search(query: $queryWords, type: REPOSITORY, first: $first, last: $last, after: $after, before: $before) {
        nodes {
            ... RepositoryListItemFragment
        }
        pageInfo {
            ... PageInfo
        }
        repositoryCount
    }
}

my input is:

{"queryWords":"google","first":48,"last":null,"after":null,"before":null}"

The error you’ve shared sometimes indicates a timeout on Github side, but your query doesn’t look too complex, so it might be an actual bug.

In any case, I think you should report it to Github directly:
https://support.github.com/request