{"record":{"id":"bfaa430a93bc5360","repo":"usebruno/bruno","slug":"extract-location-does-not-exist","errorCode":null,"errorMessage":"Extract location does not exist","messagePattern":"Extract location does not exist","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":355,"sourceCode":"\n        addDirectoryToArchive(workspacePath, '');\n        archive.finalize();\n      });\n\n      return { success: true, filePath };\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:import-workspace', async (event, zipFilePath, extractLocation) => {\n    try {\n      if (!zipFilePath || !fs.existsSync(zipFilePath)) {\n        throw new Error('Zip file does not exist');\n      }\n\n      if (!extractLocation || !fs.existsSync(extractLocation)) {\n        throw new Error('Extract location does not exist');\n      }\n\n      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","sourceCodeStart":337,"sourceCodeEnd":373,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L337-L373","documentation":"Error \"Extract location does not exist\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:355 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the extract destination directory first.","Choose an existing directory as the extract location."],"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"}