Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown query error: ./bin/run --pick Access --actual #53

Open
ljharb opened this issue Oct 14, 2021 · 1 comment
Open

unknown query error: ./bin/run --pick Access --actual #53

ljharb opened this issue Oct 14, 2021 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ljharb
Copy link
Owner

ljharb commented Oct 14, 2021

I ran ./bin/run --pick Access --actual to try to find a repo where i have Maintain privileges. I got this error:

 Config file found at $HOME/.repo-report.json
$PWD/node_modules/@octokit/request/dist-node/index.js:86
      const error = new requestError.RequestError(toErrorMessage(data), status, {
                    ^

RequestError [HttpError]: Unknown 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 `CDCB:7ADC:553568:5C3CFE:61685D53` when reporting this issue."}]}
    at $PWD/node_modules/@octokit/request/dist-node/index.js:86:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async getRepositories ($PWD/src/utils.js:126:20)
    at async detail ($PWD/src/commands/detail.js:144:35) {
  status: 502,
  response: {
    url: 'https://api.github.com/graphql',
    status: 502,
    headers: {
      'access-control-allow-origin': '*',
      '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',
      connection: 'close',
      'content-type': 'application/json',
      date: 'Thu, 14 Oct 2021 16:39:57 GMT',
      server: 'GitHub.com',
      'transfer-encoding': 'chunked',
      vary: 'Accept-Encoding, Accept, X-Requested-With',
      'x-github-request-id': 'CDCB:7ADC:553568:5C3CFE:61685D53'
    },
    data: {
      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 `CDCB:7ADC:553568:5C3CFE:61685D53` when reporting this issue.'
        }
      ]
    }
  },
  request: {
    method: 'POST',
    url: 'https://api.github.com/graphql',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-graphql.js/4.8.0 Node.js/16.9.0 (darwin; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"query":"query {\\n  viewer {\\n\\trepositories(\\n\\t  first: 100\\n\\t  affiliations: [OWNER, ORGANIZATION_MEMBER, COLLABORATOR]\\n\\t  after: \\"Y3Vyc29yOnYyOpHOAnugBw==\\"\\n\\t  isFork: false\\n\\t  privacy: PUBLIC\\n\\t) {\\n\\t  totalCount\\n\\t  pageInfo {\\n\\t\\tendCursor\\n\\t\\thasNextPage\\n\\t}\\n\\tnodes {\\n\\t\\tname\\n\\t\\tnameWithOwner\\n\\t\\tdefaultBranchRef {\\n\\t\\t\\tname\\n\\t\\t\\tbranchProtectionRule {\\n\\t\\t\\t\\tallowsForcePushes\\n\\t\\t\\t\\tallowsDeletions\\n\\t\\t\\t\\tdismissesStaleReviews\\n\\t\\t\\t\\trequiredApprovingReviewCount\\n\\t\\t\\t\\trequiresApprovingReviews\\n\\t\\t\\t\\trequiresCodeOwnerReviews\\n\\t\\t\\t\\trequiresConversationResolution\\n\\t\\t\\t\\trestrictsPushes\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tdeleteBranchOnMerge\\n\\t\\thasIssuesEnabled\\n\\t\\thasProjectsEnabled\\n\\t\\thasWikiEnabled\\n\\t\\tisArchived\\n\\t\\tisBlankIssuesEnabled\\n\\t\\tisFork\\n\\t\\tisPrivate\\n\\t\\tisSecurityPolicyEnabled\\n\\t\\tisTemplate\\n\\t\\tlicenseInfo {\\n\\t\\t\\tname\\n\\t\\t}\\n\\t\\tmergeCommitAllowed\\n\\t\\towner {\\n\\t\\t\\tlogin\\n\\t\\t}\\n\\t\\trebaseMergeAllowed\\n\\t\\tsquashMergeAllowed\\n\\t\\tcreatedAt\\n\\t\\tupdatedAt\\n\\t\\tpushedAt\\n\\t\\tviewerHasStarred\\n\\t\\tviewerPermission\\n\\t\\tviewerSubscription\\n\\t  }\\n\\t}\\n  }\\n  rateLimit {\\n\\tcost\\n\\tremaining\\n  }\\n}\\n"}'
  }
}

When I modified my config file so Access only contained "Maintain", and ran ./bin/run, i got the same error

@ljharb ljharb added bug Something isn't working help wanted Extra attention is needed labels Oct 14, 2021
@ljharb
Copy link
Owner Author

ljharb commented Oct 14, 2021

Turns out this was a temporary brownout of my old github token format; it works now. We should still handle this error better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant