Kong/insomnia · error
GitHub API error
Error message
GitHub API error: ${response.statusText} What it means
HTTP failure check while paginating GET /user/repos in GitHubProvider.fetchRepositories: a page returned a non-OK status, so the repository list for the Git clone dialog cannot be fetched with the current token.
Solutions
- Re-validate the credential and re-authenticate if the token expired or lacks repo scope
- Check rate-limit responses (403/429) and retry after the reset window
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at packages/insomnia/src/sync/git/providers/github.ts:168 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26).
Data as JSON: /api/errors/10c9e93396bf9687.
Report an issue: GitHub.
Appendix: source
Thrown at packages/insomnia/src/sync/git/providers/github.ts:168
return this.repositoryCache.get(credentials._id)!;
}
const repos: ProviderRepository[] = [];
let page = 1;
const perPage = 100;
while (true) {
const response = await net.fetch(
`${this.config.apiUrl}/user/repos?per_page=${perPage}&page=${page}&sort=updated`,
{
headers: {
Authorization: `token ${credentials.credentials?.token}`,
},
},
);
if (!response.ok) {
throw new Error(`GitHub API error: ${response.statusText}`);
}
const data = (await response.json()) as GitHubRepositoryApiResponse[];
repos.push(
...data
.filter(repo => repo.permissions?.pull)
.map(repo => ({
id: String(repo.id),
name: repo.name,
fullName: repo.full_name,
cloneUrl: repo.clone_url,
defaultBranch: repo.default_branch,
permissions: {
admin: repo.permissions?.admin || false,
push: repo.permissions?.push || false,
pull: repo.permissions?.pull || false,
},View on GitHub (pinned to d9bb2b0142)