{"record":{"id":"e77b4fe61eab6741","repo":"Kong/insomnia","slug":"branch-does-not-exist-with-name-branchname","errorCode":null,"errorMessage":"Branch does not exist with name ${branchName}","messagePattern":"Branch does not exist with name (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1472,"sourceCode":"\n    if (!id) {\n      throw new Error('Not logged in');\n    }\n\n    return {\n      accountId,\n      sessionId: id,\n      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) {","sourceCodeStart":1454,"sourceCodeEnd":1490,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1454-L1490","documentation":"Error \"Branch does not exist with name ${branchName}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1472 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"}