{"record":{"id":"a424c9b3517475e8","repo":"usebruno/bruno","slug":"invalid-workspace-workspace-yml-not-found-in-the","errorCode":null,"errorMessage":"Invalid workspace: workspace.yml not found in the zip file","messagePattern":"Invalid workspace: workspace\\.yml not found in the zip file","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":376,"sourceCode":"      const tempDir = path.join(extractLocation, `_bruno_temp_${Date.now()}`);\n      await fsExtra.ensureDir(tempDir);\n\n      try {\n        await extractZip(zipFilePath, { dir: tempDir });\n\n        const extractedItems = fs.readdirSync(tempDir);\n        let workspaceDir = tempDir;\n\n        if (extractedItems.length === 1) {\n          const singleItem = path.join(tempDir, extractedItems[0]);\n          if (fs.statSync(singleItem).isDirectory()) {\n            workspaceDir = singleItem;\n          }\n        }\n\n        const workspaceYmlPath = path.join(workspaceDir, 'workspace.yml');\n        if (!fs.existsSync(workspaceYmlPath)) {\n          throw new Error('Invalid workspace: workspace.yml not found in the zip file');\n        }\n\n        const workspaceConfig = yaml.load(fs.readFileSync(workspaceYmlPath, 'utf8'));\n        const workspaceName = workspaceConfig.info.name || 'Imported Workspace';\n        const sanitizedName = sanitizeName(workspaceName);\n\n        let finalWorkspacePath = path.join(extractLocation, sanitizedName);\n        let counter = 1;\n        while (fs.existsSync(finalWorkspacePath)) {\n          finalWorkspacePath = path.join(extractLocation, `${sanitizedName} (${counter})`);\n          counter++;\n        }\n\n        if (workspaceDir !== tempDir) {\n          await fsExtra.move(workspaceDir, finalWorkspacePath);\n          await fsExtra.remove(tempDir);\n        } else {\n          await fsExtra.move(tempDir, finalWorkspacePath);","sourceCodeStart":358,"sourceCodeEnd":394,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L358-L394","documentation":"Error \"Invalid workspace: workspace.yml not found in the zip file\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:376 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Export the workspace again ensuring workspace.yml is included at the zip root.","Use a zip produced by Bruno's workspace export."],"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"}