{"record":{"id":"a606858d0858f5a1","repo":"Kong/insomnia","slug":"http-error-response-status-response-statuste","errorCode":null,"errorMessage":"HTTP Error: ${response.status} ${response.statusText}","messagePattern":"HTTP Error: (.+?) (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia/src/sync/git/providers/github.ts","lineNumber":132,"sourceCode":"\n  /**\n   * Validate credentials against the GitHub API.\n   * Hits `GET /user` — lightweight and authoritative: returns 401 when the\n   * token is revoked or the GitHub App has been uninstalled.\n   */\n  async validateCredentials(credential: GitCredentials): Promise<void> {\n    if (!isGitCredentialsV2(credential) || credential.provider !== 'github') {\n      throw new Error('Invalid credential type for GitHub provider');\n    }\n\n    const response = await net.fetch(`${this.config.apiUrl}/user`, {\n      headers: {\n        Authorization: `token ${credential.credentials.token}`,\n      },\n    });\n\n    if (!response.ok) {\n      throw new Error(`HTTP Error: ${response.status} ${response.statusText}`);\n    }\n  }\n\n  /**\n   * Fetch repositories accessible by the credential\n   */\n  async fetchRepositories(credentials: GitCredentials, refresh?: boolean): Promise<ProviderRepository[]> {\n    if (!isGitCredentialsV2(credentials) || credentials.provider !== 'github') {\n      throw new Error('Invalid credential type for GitHub provider');\n    }\n\n    if (\n      !refresh &&\n      this.repositoryCache.has(credentials._id) &&\n      this.repositoryCache.get(credentials._id)?.length &&\n      this.repositoryCache.get(credentials._id)!.length > 0\n    ) {\n      return this.repositoryCache.get(credentials._id)!;","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia/src/sync/git/providers/github.ts#L114-L150","documentation":"Error \"HTTP Error: ${response.status} ${response.statusText}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia/src/sync/git/providers/github.ts:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}