Something went wrong while executing your query. This is most likely a GitHub bug


#1

Uncaught (in promise) Error: GraphQL error: Something went wrong while executing your query. This is most likely a GitHub bug. Please include “5373:1B814:394180:488C67:58CCDC3A” when reporting this issue.

it won’t work after i add commitComments to query

const queryNodesByIds = (ids) => () => Query`{
  nodes(ids: [${ids}]) {
    ... on Repository {
      name
      createdAt
      updatedAt
      pushedAt
      owner {
        login
      }
      commitComments(last: 30) {
        edges {
          node {
            createdAt
          }
        }
      }
      releases(last: 10) {
        edges {
          node {
            publishedAt,
            tag {
              name
            }
          }
        }
      }
    }
  }
}`

this work

const queryNodesByIds = (ids) => () => Query`{
  nodes(ids: [${ids}]) {
    ... on Repository {
      name
      createdAt
      updatedAt
      pushedAt
      owner {
        login
      }
      releases(last: 10) {
        edges {
          node {
            publishedAt,
            tag {
              name
            }
          }
        }
      }
    }
  }
}`

#2

but this work with official github graphql api explorer

{
  nodes(ids: ["MDEwOlJlcG9zaXRvcnkzMjE0NDA2"]) {
    ... on Repository {
      name
      updatedAt
      pushedAt
      owner {
        login
      }
      commitComments(last: 30) {
        edges {
          node {
            createdAt
          }
        }
      }
      releases(last: 30) {
        edges {
          node {
            publishedAt
            tag {
              name
            }
          }
        }
      }
    }
  }
}

and why certain repo’s releases field are empty ?


#3

try query this one doesn’t work with official github graphql api explorer

{
  nodes(ids: ["MDEwOlJlcG9zaXRvcnkxMDI3MDI1MA=="]) {
    ... on Repository {
      name
      updatedAt
      pushedAt
      owner {
        login
      }
      commitComments(last: 30) {
        edges {
          node {
            createdAt
          }
        }
      }
      releases(last: 30) {
        edges {
          node {
            publishedAt
            tag {
              name
            }
          }
        }
      }
    }
  }
}

#4

:wave: @crapthings,

It looks like you’ve hit a bug. I’ve created an internal issue to investigate. We’ll follow up as soon as we have more information.


#5

Hey! :wave:

I’ve hit a similar bug asking for a list of repositories:

Something went wrong while executing your query. This is most likely a GitHub bug. Please include “FF96:0CD6:325113:3FE36E:58D23EE3” when reporting this issue.

with a different query

query getRepositoriesData($totalRepositories: Int) {
  # the name of the organization could be passed as a variable,
  # however that's not the point of this experiment
  organization(login: "apollographql") {
    id
    # we ask for "all" as pagination is ~broken at the moment
    # see https://platform.github.community/t/organization-repositories-orderby-has-no-effect/1503
    repositories(last: $totalRepositories, isFork: false, orderBy: {field: PUSHED_AT, direction: ASC}) {
      nodes {
        id
        name
        # we don't really care about the pull requests data in themselves,
        # we are looking for the total count, however github enforces to at least 
        # specify a last/first
        pullRequests(last: 1, states: OPEN) {
          totalCount
        }
        # same as pull requests, we are looking for the total count
        issues(last: 1, states: OPEN) {
          totalCount
        }
      }
    }
  }
}

The query is working in the GH Explorer (GraphiQL)

Thanks for building a GraphQL API folks! :rocket:


#6

:wave: @xavcz,

We’ll look into your query, thank you for reporting it :heart:. I just gave it a run and it worked, which is odd :thinking:. Is it definitely still failing for you? It may be worth trying it with edges { node { instead of nodes { (which I’ve seen fail in the past).

I just wanted to add that when requesting totalCounts, first and last not required. So the following would work:

query($totalRepositories: Int) {
  organization(login: "apollographql") {
    id

    repositories(last: $totalRepositories, isFork: false, orderBy: {field: PUSHED_AT, direction: ASC}) {
      nodes {
        id
        name
        
        pullRequests(states: OPEN) {
          totalCount
        }
        
        issues(states: OPEN) {
          totalCount
        }
      }
    }
  }
}

#7

Thanks @bswinnerton, and great to know for the last/first :left_right_arrow:totalCounts! :ok_hand:

Some more info about the issue:

  • both queries are working in the GraphiQL Explorer, though it breaks in my app when triggering it with react-apollo (I’m using the graphql hoc from this package + ApolloClient with a correct Github Token sent with each request).
  • adding edges { node { ... } } doesn’t solve the issue, new error code: E2D1:0CD4:43BBED:54C7D9:58D2F1AB
  • another query is sent before this one, asking for the organization’s repositories total count.
  • it did work this weekend and on monday :innocent:

Here is the simple app using this query if it can be of any help: https://github.com/xavcz/github-data-viz

It uses Meteor as the build tool now: if your team or anyone needs to test the app, they can use the code at this commit, it’s based on a create-react-app: https://github.com/xavcz/github-data-viz/tree/a460132179715fe617b35e3ef2c84e39913c11c9 (by the way, the error message is at this stage: E391:0CD6:AAF51C:D85B1F:58D2F3E9).

Both latest commit with new query and “create-react-app” state are failing.

Additional informations maybe useful for debugging:

:bug:


#8

I have a query that works when I’m not an admin, but it doesn’t find all the relevant information. When I’m an admin I keep getting messages like this:

“message”: “Something went wrong while executing your query. Please include 8F10:6134:1F16D3:4C38F1:5B1FFCC7 when reporting this issue.”

This is the query - it would be really awesome if it could work. Once in a while it works with a “first” of 5 or so, but that is ridiculous. I’m nowhere near the rate limits either. Why is this broken? Thanks in advance.

{
  organization(login: "MyRepo") {
    teams(first: 100) {
      totalCount
      edges {
        node {
          name
            repositories(first: 100) {
            nodes {
              nameWithOwner
              isPrivate
              homepageUrl
              rebaseMergeAllowed
              squashMergeAllowed
              viewerCanAdminister
              isLocked
              isArchived
              diskUsage
              viewerPermission
              mergeCommitAllowed
              parent {
                name
              }
            }
          }
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}

#9

Having the same issue while trying to get issues of my own repository, there is what error I have:

"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 include3FF5:5D60:99951:186FE5:5B9FCD01when reporting this issue."}

Can anyone from stuff provide more details?