{"record":{"id":"f0ba980967875662","repo":"Kong/insomnia","slug":"failed-to-get-commit-id-id","errorCode":null,"errorMessage":"Failed to get commit id=${id}","messagePattern":"Failed to get commit id=(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":620,"sourceCode":"    };\n  }\n\n  async getHistoryCount() {\n    const branch = await this._getCurrentBranch();\n    return branch?.snapshots.length || 0;\n  }\n\n  async getHistory(count = 0) {\n    const branch = await this._getCurrentBranch();\n    const snapshots: Snapshot[] = [];\n    const total = branch.snapshots.length;\n    const slice = count <= 0 || count > total ? 0 : total - count;\n\n    for (const id of branch.snapshots.slice(slice)) {\n      const snapshot = await this._getSnapshot(id);\n\n      if (snapshot === null) {\n        throw new Error(`Failed to get commit id=${id}`);\n      }\n\n      snapshots.push(snapshot);\n    }\n\n    return snapshots;\n  }\n\n  async getCurrentBranchName() {\n    const branch = await this._getCurrentBranch();\n    return branch.name;\n  }\n\n  async getRemoteBranchNames(): Promise<string[]> {\n    const { branches } = await this._runGraphQL<{ branches: { name: string }[] | null }>(\n      `\n      query ($projectId: ID!) {\n        branches(project: $projectId) {","sourceCodeStart":602,"sourceCodeEnd":638,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L602-L638","documentation":"Error \"Failed to get commit id=${id}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:620 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"}