{"record":{"id":"5ca8f72d6b41e129","repo":"Kong/insomnia","slug":"failed-to-find-commit-id-id","errorCode":null,"errorMessage":"Failed to find commit id=${id}","messagePattern":"Failed to find commit id=(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1607,"sourceCode":"\n      if (p === null) {\n        // Folder exists but project meta file is gone\n        continue;\n      }\n\n      backendProjects.push(p);\n    }\n\n    return backendProjects;\n  }\n\n  async _assertSnapshot(id: string) {\n    const snapshot: Snapshot | null = await this._store.getItem(\n      `/projects/${this._backendProjectId()}/snapshots/${id}.json`,\n    );\n\n    if (!snapshot) {\n      throw new Error(`Failed to find commit id=${id}`);\n    }\n\n    if (snapshot && typeof snapshot.created === 'string') {\n      snapshot.created = new Date(snapshot.created);\n    }\n\n    return snapshot;\n  }\n\n  async _getSnapshot(id: string) {\n    const snapshot: Snapshot | null = await this._store.getItem(\n      `/projects/${this._backendProjectId()}/snapshots/${id}.json`,\n    );\n\n    if (snapshot && typeof snapshot.created === 'string') {\n      snapshot.created = new Date(snapshot.created);\n    }\n","sourceCodeStart":1589,"sourceCodeEnd":1625,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1589-L1625","documentation":"Guard in VCS._assertSnapshot: no snapshot with the given id exists in the local store at the expected path. The missing commit id is interpolated; indicates a stale reference or deleted snapshot file.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1607 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pull/fetch to restore the snapshot from remote","Verify the commit id and project scope","Use getHistory to list locally available snapshots"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","contentChangedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}