{"record":{"id":"4b52966eec98c468","repo":"usebruno/bruno","slug":"invalid-workspace-workspace-yml-not-found","errorCode":null,"errorMessage":"Invalid workspace: workspace.yml not found","messagePattern":"Invalid workspace: workspace\\.yml not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":222,"sourceCode":"        throw new Error('Workspace path is undefined');\n      }\n      validateWorkspacePath(workspacePath);\n      await reorderWorkspaceCollections(workspacePath, collectionPaths);\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:load-workspace-apispecs', async (event, workspacePath) => {\n    try {\n      if (!workspacePath) {\n        throw new Error('Workspace path is undefined');\n      }\n\n      const workspaceFilePath = path.join(workspacePath, 'workspace.yml');\n\n      if (!fs.existsSync(workspaceFilePath)) {\n        throw new Error('Invalid workspace: workspace.yml not found');\n      }\n\n      const yamlContent = fs.readFileSync(workspaceFilePath, 'utf8');\n      const workspaceConfig = yaml.load(yamlContent);\n\n      if (!workspaceConfig || typeof workspaceConfig !== 'object') {\n        return [];\n      }\n\n      const specs = Array.isArray(workspaceConfig.specs) ? workspaceConfig.specs : [];\n\n      const resolvedSpecs = specs\n        .map((spec) => {\n          if (spec.path && !path.isAbsolute(spec.path)) {\n            return {\n              ...spec,\n              path: path.join(workspacePath, spec.path)\n            };","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L204-L240","documentation":"Error \"Invalid workspace: workspace.yml not found\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point to a valid Bruno workspace containing workspace.yml.","Create a workspace in that directory first."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}