OtterMind/Chat2DB · error · Error
GitHub GraphQL failed: ${JSON.stringify(payload.errors).slic
Error message
GitHub GraphQL failed: ${JSON.stringify(payload.errors).slice(0, 1000)} What it means
Error "GitHub GraphQL failed: ${JSON.stringify(payload.errors).slice(0, 1000)}" thrown in OtterMind/Chat2DB.
Source
Thrown at script/github/sync-community-project.js:74
'Content-Type': 'application/json',
'X-GitHub-Api-Version': '2022-11-28',
},
body: body === undefined ? undefined : JSON.stringify(body),
});
const payload = response.status === 204 ? null : await response.json();
if (!response.ok) {
throw new Error(`GitHub API ${method} ${endpoint} failed (${response.status}): ${JSON.stringify(payload).slice(0, 800)}`);
}
return payload;
}
async graphql(query, variables) {
const payload = await this.request('/graphql', {
method: 'POST',
body: { query, variables },
});
if (payload.errors?.length) {
throw new Error(`GitHub GraphQL failed: ${JSON.stringify(payload.errors).slice(0, 1000)}`);
}
return payload.data;
}
getIssue(number) {
return this.request(`/repos/${this.owner}/${this.repo}/issues/${number}`);
}
async getClosingIssues(pullRequestNumber) {
const data = await this.graphql(`
query ClosingIssues($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
closingIssuesReferences(first: 50) {
nodes { id number state labels(first: 50) { nodes { name } } }
}
}
}View on GitHub (pinned to 5ee1e990e7)
Solutions
- Inspect the errors array in the message for the GraphQL field-level error and fix the query variables accordingly.
- Confirm the token can access Projects V2 (GraphQL) and that the project number and owner are correct.
When it happens
Trigger: A GitHub GraphQL request returned an errors payload, typically due to a bad query, missing scope, or unknown node id.
Common situations: See trigger scenarios.
AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14).
Data as JSON: /api/errors/d74dfc6eb7f80fbe.
Report an issue: GitHub.