-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
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
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done