{"record":{"id":"85a3b679cbe1a27c","repo":"musistudio/claude-code-router","slug":"startedstatus-lasterror-ccr-gateway-did-not","errorCode":null,"errorMessage":"${startedStatus.lastError || `CCR gateway did not start for ${appName}.`}","messagePattern":"\\$\\{startedStatus\\.lastError \\|\\| `CCR gateway did not start for \\$\\{appName\\}\\.`\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/profiles/launch-service.ts","lineNumber":436,"sourceCode":"\n  if (!startIfMissing) {\n    throw new ProfileGatewayUnavailableError(`CCR gateway is not running at ${profileGatewayEndpoint(config)}. Start CCR Desktop or run ccr start before opening ${appName}.`);\n  }\n\n  const startedStatus = await gatewayService.start(config);\n  if (startedStatus.state === \"running\") {\n    return { config };\n  }\n\n  if (options.reuseExisting && isAddressInUseError(startedStatus.lastError)) {\n    const existingGateway = await probeExistingProfileGateway(config, profile, candidateConfig);\n    if (existingGateway.state === \"usable\") {\n      return { acceptedApiKey: existingGateway.apiKey, config };\n    }\n    throw new Error(existingGatewayConflictMessage(existingGateway, appName));\n  }\n\n  throw new Error(startedStatus.lastError || `CCR gateway did not start for ${appName}.`);\n}\n\ntype ExistingProfileGatewayProbe =\n  | { endpoint: string; reason?: string; state: \"unavailable\" }\n  | { endpoint: string; message: string; state: \"incompatible\" }\n  | { endpoint: string; status?: number; state: \"not-ccr\" }\n  | { endpoint: string; message?: string; status: number; state: \"unauthorized\" }\n  | { endpoint: string; status: number; state: \"unusable\" }\n  | { apiKey?: string; endpoint: string; state: \"usable\" };\n\ntype ExistingGatewayHttpProbe = {\n  payload?: unknown;\n  reason?: string;\n  status?: number;\n};\n\nconst existingGatewayFetchAttempts = 3;\n","sourceCodeStart":418,"sourceCodeEnd":454,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/core/src/profiles/launch-service.ts#L418-L454","documentation":"Error \"${startedStatus.lastError || `CCR gateway did not start for ${appName}.`}\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/core/src/profiles/launch-service.ts:436 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"99f24806c6a2c660b16e53e95211c517448a6c90","analyzedAt":"2026-08-27T04:11:01.184Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}