usebruno/bruno · error · Error

Selected collection is not available.

Error message

Selected collection is not available.

What it means

Error "Selected collection is not available." thrown in usebruno/bruno.

Solutions

  1. Reload the workspace so the collection is available, then retry.
  2. Confirm the collection was not removed from the workspace.

When it happens

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

Appendix: source

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

  if (instance.sourceType === 'spec') {
    const spec = resolveInstanceSpec(instance, apiSpecs);
    if (!spec?.pathname) {
      throw new Error('Selected API spec is not available. Open it in the workspace first.');
    }

    return {
      mockServerUid,
      serverName: instance.name,
      sourceType: 'spec',
      specPath: spec.pathname,
      workspacePath: resolvedWorkspacePath,
      port: Number(instance.port),
      globalDelay: Number(instance.globalDelay) || 0
    };
  }

  if (!collection?.pathname) {
    throw new Error('Selected collection is not available.');
  }

  return {
    mockServerUid,
    serverName: instance.name,
    sourceType: 'collection',
    collectionPath: collection.pathname,
    collectionName: collection.name,
    brunoConfig: collection.brunoConfig,
    workspacePath: resolvedWorkspacePath,
    port: Number(instance.port),
    globalDelay: Number(instance.globalDelay) || 0
  };
};

export const openMockServerDashboard = (instance, collectionUid) => (dispatch) => {
  dispatch(addTab({
    uid: instance.uid,

View on GitHub (pinned to 9bdd81c7bd)