Skip to content
New issue

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

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

Already on GitHub? # to your account

[FEAT]: Retry on GraphQL error: "Something went wrong while executing your query. Please include 0401:6C25:28BCA72:539243A:638E5DA9 when reporting this issue." #395

Closed
1 task done
gr2m opened this issue Jan 24, 2023 · 1 comment · Fixed by #396
Labels
released Type: Feature New feature or request

Comments

@gr2m
Copy link
Contributor

gr2m commented Jan 24, 2023

Describe the need

I've seen this error occur regularly when working with the GraphQL nodes for the new Projects (V2).

I think when a graphql request responds with this body:

{
  errors: [
    {
      message:
        "Something went wrong while executing your query. Please include `0401:6C25:28BCA72:539243A:638E5DA9` when reporting this issue.",
    },
  ];
}

Then we should retry the same request the same way we retry 5xx responses from the REST API

SDK Version

octokit@2.0.14

API Version

latest

Relevant log output

GraphqlResponseError: Request failed due to following response errors:
 - Something went wrong while executing your query. Please include `0401:6C25:28BCA72:539243A:638E5DA9` when reporting this issue.
    at /home/runner/work/delivery-org/delivery-org/node_modules/@octokit/graphql/dist-node/index.js:70:13
    at async addItem (file://[REDACTED])
    at async run (file://[REDACTED]) {
  request: {
    query: '\n' +
      '  mutation addIssueToProject($projectId:ID!, $contentId:ID!) {\n' +
      '    addProjectV2ItemById(input:{\n' +
      '      projectId:$projectId,\n' +
      '      contentId:$contentId\n' +
      '    }) {\n' +
      '      item {\n' +
      '        \n' +
      '        id\n' +
      '        createdAt\n' +
      '        type\n' +
      '        \n' +
      '        content {\n' +
      '          ... on DraftIssue {\n' +
      '            id\n' +
      '            title\n' +
      '            createdAt\n' +
      '            updatedAt\n' +
      '            author: creator {\n' +
      '              login\n' +
      '            }\n' +
      '            assignees(first: 10) {\n' +
      '              nodes {\n' +
      '                login\n' +
      '              }\n' +
      '            }\n' +
      '          }\n' +
      '          ... on Issue {\n' +
      '            \n' +
      '        id\n' +
      '        databaseId\n' +
      '        number\n' +
      '            ... on ProjectV2ItemFieldTextValue {\n' +
      '              text\n' +
      '              field {\n' +
      '                ... on ProjectV2Field {\n' +
      '                  id\n' +
      '                }\n' +
      '              }\n' +
      '            }\n' +
      '          }\n' +
      '        }\n' +
      '      \n' +
      '      }\n' +
      '    }\n' +
      '  }\n',
    variables: {
      projectId: '[REDACTED]',
      contentId: '[REDACTED]'
    }
  },
  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-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
    connection: 'close',
    'content-encoding': 'gzip',
    'content-security-policy': "default-src 'none'",
    'content-type': 'application/json; charset=utf-8',
    date: 'Mon, 05 Dec 2022 21:07:54 GMT',
    'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
    server: 'github.com',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'transfer-encoding': 'chunked',
    vary: 'Accept-Encoding, Accept, X-Requested-With',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-github-media-type': 'github.v3; format=json',
    'x-github-request-id': '0401:6C25:28BCA72:539243A:638E5DA9',
    'x-ratelimit-limit': '12500',
    'x-ratelimit-remaining': '12353',
    'x-ratelimit-reset': '1670277477',
    'x-ratelimit-resource': 'graphql',
    'x-ratelimit-used': '147',
    'x-xss-protection': '0'
  },
  response: {
    errors: [
      {
        message: 'Something went wrong while executing your query. Please include `0401:6C25:28BCA72:539243A:638E5DA9` when reporting this issue.'
      }
    ]
  },
  errors: [
    {
      message: 'Something went wrong while executing your query. Please include `0401:6C25:28BCA72:539243A:638E5DA9` when reporting this issue.'
    }
  ],
  data: undefined
}

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gr2m gr2m added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jan 24, 2023
@gr2m gr2m linked a pull request Jan 24, 2023 that will close this issue
@wolfy1339 wolfy1339 added Priority: Normal and removed Status: Triage This is being looked at and prioritized labels Jan 24, 2023
@wolfy1339 wolfy1339 moved this from 🆕 Triage to 🏗 In progress in 🧰 Octokit Active Jan 24, 2023
@gr2m gr2m closed this as completed in #396 Jan 25, 2023
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 🧰 Octokit Active Jan 25, 2023
@github-actions
Copy link

🎉 This issue has been resolved in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
released Type: Feature New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants