{"record":{"id":"19ef4a49e5f2b1a7","repo":"usebruno/bruno","slug":"zip-file-does-not-exist-19ef4a","errorCode":null,"errorMessage":"Zip file does not exist","messagePattern":"Zip file does not exist","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":351,"sourceCode":"              archive.file(fullPath, { name: entryArchivePath });\n            }\n          }\n        };\n\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()) {","sourceCodeStart":333,"sourceCodeEnd":369,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L333-L369","documentation":"Error \"Zip file does not exist\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:351 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the zip file path and that the file exists.","Re-export the workspace zip and retry."],"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"}