{"record":{"id":"5592ecb167ef1980","repo":"Kong/insomnia","slug":"no-active-backend-project","errorCode":null,"errorMessage":"No active backend project","messagePattern":"No active backend project","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1480,"sourceCode":"      privateKey,\n      publicKey,\n      symmetricKey,\n    };\n  }\n\n  async _assertBranch(branchName: string) {\n    const branch = await this._getBranch(branchName);\n\n    if (branch === null) {\n      throw new Error(`Branch does not exist with name ${branchName}`);\n    }\n\n    return branch;\n  }\n\n  _backendProjectId() {\n    if (this._backendProject === null) {\n      throw new Error('No active backend project');\n    }\n\n    return this._backendProject.id;\n  }\n\n  async _getBranch(name: string): Promise<Branch | null> {\n    return this._store.getItem(`/projects/${this._backendProjectId()}/branches/${encodeBranchName(name)}.json`);\n  }\n\n  async _getBranches(backendProjectId?: string) {\n    const branches: Branch[] = [];\n\n    const pId = backendProjectId || this._backendProjectId();\n\n    for (const p of await this._store.keys(`/projects/${pId}/branches/`)) {\n      const b = await this._store.getItem(p);\n\n      if (b === null) {","sourceCodeStart":1462,"sourceCodeEnd":1498,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1462-L1498","documentation":"Error \"No active backend project\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1480 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"}