usebruno/bruno · error · Error

Workspace path is required.

Error message

Workspace path is required.

What it means

Error "Workspace path is required." thrown in usebruno/bruno.

Source

Thrown at packages/bruno-app/src/utils/mock-server/mock-server-instances.js:168

      await dispatch(refreshMockRoutes(location)).unwrap();
    } catch {
      // Running server may have stopped between hydrate and refresh.
    }
  }));

  return instances;
};

export const saveMockServerInstance = (instance) => async (dispatch, getState) => {
  const state = getState();
  const workspacePath = resolveMockServerWorkspacePath(
    instance,
    state.workspaces.workspaces,
    state.workspaces.workspaces.find((workspace) => workspace.uid === state.workspaces.activeWorkspaceUid) || null
  );

  if (!workspacePath) {
    throw new Error('Workspace path is required.');
  }

  const result = await window.ipcRenderer.invoke('renderer:mock-server-save-instance', {
    workspacePath,
    instance
  });

  if (!result?.success) {
    throw new Error(result?.error || 'Failed to save mock server');
  }

  const savedInstance = result.instance || instance;
  dispatch(upsertMockServerInstance({
    workspaceUid: instance.workspaceUid,
    instance: savedInstance
  }));

  return savedInstance;

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Open a workspace before managing mock servers.
  2. Pass a valid workspace path to the operation.

When it happens

Trigger: Thrown at packages/bruno-app/src/utils/mock-server/mock-server-instances.js:168 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/6d6fbfe3b01ab67f. Report an issue: GitHub.