usebruno/bruno · error · Error

Workspace path does not exist

Error message

Workspace path does not exist

What it means

Error "Workspace path does not exist" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-electron/src/ipc/workspace.js:291

  ipcMain.handle('renderer:close-workspace', async (event, workspacePath) => {
    try {
      lastOpenedWorkspaces.remove(workspacePath);
      globalEnvironmentsStore.removeActiveGlobalEnvironmentUidForWorkspace(workspacePath);

      if (workspaceWatcher) {
        workspaceWatcher.removeWatcher(workspacePath);
      }

      return { success: true };
    } catch (error) {
      throw error;
    }
  });

  ipcMain.handle('renderer:export-workspace', async (event, workspacePath, workspaceName) => {
    try {
      if (!workspacePath || !fs.existsSync(workspacePath)) {
        throw new Error('Workspace path does not exist');
      }

      const defaultFileName = `${sanitizeName(workspaceName)}.zip`;
      const { filePath, canceled } = await dialog.showSaveDialog(mainWindow, {
        title: 'Export Workspace',
        defaultPath: defaultFileName,
        filters: [{ name: 'Zip Files', extensions: ['zip'] }]
      });

      if (canceled || !filePath) {
        return { success: false, canceled: true };
      }

      const ignoredDirectories = ['node_modules', '.git'];

      await new Promise((resolve, reject) => {
        const output = fs.createWriteStream(filePath);
        const archive = archiver('zip', { zlib: { level: 9 } });

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Verify the workspace directory exists; recreate or re-open it.
  2. Fix the configured workspace path.

When it happens

Trigger: Thrown at packages/bruno-electron/src/ipc/workspace.js:291 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13). Data as JSON: /api/errors/e2a04d4fa8c10b08. Report an issue: GitHub.