{"record":{"id":"a1e956b9c87b45a7","repo":"Kong/insomnia","slug":"no-branch-name-specified-for-get-or-create-operati","errorCode":null,"errorMessage":"No branch name specified for get-or-create operation","messagePattern":"No branch name specified for get-or-create operation","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1511,"sourceCode":"    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) {\n        // Should never happen\n        throw new Error(`Failed to get branch path=${p}`);\n      }\n\n      branches.push(b);\n    }\n\n    return branches;\n  }\n\n  async _getOrCreateBranch(name: string): Promise<Branch> {\n    if (!name) {\n      throw new Error('No branch name specified for get-or-create operation');\n    }\n\n    const branch = await this._getBranch(name);\n\n    if (branch === null) {\n      await this._storeBranch({\n        name,\n        created: new Date(),\n        modified: new Date(),\n        snapshots: [],\n      });\n      return this._getOrCreateBranch(name);\n    }\n\n    return branch;\n  }\n\n  async _getBackendProjectByRootDocument(rootDocumentId: string) {","sourceCodeStart":1493,"sourceCodeEnd":1529,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1493-L1529","documentation":"Error \"No branch name specified for get-or-create operation\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1511 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"}