{"record":{"id":"dea5ea6df88d56f1","repo":"usebruno/bruno","slug":"selected-collection-is-not-available","errorCode":null,"errorMessage":"Selected collection is not available.","messagePattern":"Selected collection is not available\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/utils/mock-server/mock-server-instances.js","lineNumber":345,"sourceCode":"  if (instance.sourceType === 'spec') {\n    const spec = resolveInstanceSpec(instance, apiSpecs);\n    if (!spec?.pathname) {\n      throw new Error('Selected API spec is not available. Open it in the workspace first.');\n    }\n\n    return {\n      mockServerUid,\n      serverName: instance.name,\n      sourceType: 'spec',\n      specPath: spec.pathname,\n      workspacePath: resolvedWorkspacePath,\n      port: Number(instance.port),\n      globalDelay: Number(instance.globalDelay) || 0\n    };\n  }\n\n  if (!collection?.pathname) {\n    throw new Error('Selected collection is not available.');\n  }\n\n  return {\n    mockServerUid,\n    serverName: instance.name,\n    sourceType: 'collection',\n    collectionPath: collection.pathname,\n    collectionName: collection.name,\n    brunoConfig: collection.brunoConfig,\n    workspacePath: resolvedWorkspacePath,\n    port: Number(instance.port),\n    globalDelay: Number(instance.globalDelay) || 0\n  };\n};\n\nexport const openMockServerDashboard = (instance, collectionUid) => (dispatch) => {\n  dispatch(addTab({\n    uid: instance.uid,","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/utils/mock-server/mock-server-instances.js#L327-L363","documentation":"Error \"Selected collection is not available.\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/utils/mock-server/mock-server-instances.js:345 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reload the workspace so the collection is available, then retry.","Confirm the collection was not removed from the workspace."],"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"}