{"record":{"id":"0f82c81b1e1104df","repo":"usebruno/bruno","slug":"mock-server-is-not-running","errorCode":null,"errorMessage":"Mock server is not running.","messagePattern":"Mock server is not running\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/app/mock-server/mock-server.js","lineNumber":653,"sourceCode":"\n  if (collection) {\n    setCollectionRouteMap(collection, routeMap);\n  }\n\n  return {\n    routeCount: routeMap.size,\n    exampleCount: countRouteResponses(routeMap)\n  };\n};\n\nconst getLog = (mockServerUid) => {\n  const collection = collections.get(mockServerUid);\n  return collection ? collection.requestLog : [];\n};\n\nconst setDelay = (mockServerUid, delay) => {\n  const collection = collections.get(mockServerUid);\n  if (!collection) throw new Error('Mock server is not running.');\n  collection.globalDelay = Math.max(0, Number(delay) || 0);\n};\n\nconst clearLog = (mockServerUid) => {\n  const collection = collections.get(mockServerUid);\n  if (collection) collection.requestLog = [];\n};\n\nconst getRunningMockServerUids = () => Array.from(collections.keys());\n\nconst reloadRoutesFromStore = async (mockServerUid, location = {}) => {\n  const collection = collections.get(mockServerUid);\n  if (!collection) {\n    return refreshRoutes(mockServerUid, location);\n  }\n\n  return refreshRoutes(mockServerUid, {\n    sourceType: collection.sourceType,","sourceCodeStart":635,"sourceCodeEnd":671,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/app/mock-server/mock-server.js#L635-L671","documentation":"Error \"Mock server is not running.\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/app/mock-server/mock-server.js:653 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start the mock server before invoking this operation.","Refresh the mock server status in the UI."],"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"}