{"record":{"id":"618e1549bbdad750","repo":"diegosouzapw/OmniRoute","slug":"volcano-kind-plan-unavailable-detected-error","errorCode":null,"errorMessage":"Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : \"\"} — re-bind the plan","messagePattern":"Volcano (.+?) plan unavailable(.+?)` : \"\"\\} — re-bind the plan","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/providers/volcenginePlanModelDiscovery.ts","lineNumber":359,"sourceCode":" * console cookie + csrf token stored on the connection's providerSpecificData.\n *\n * Verifies the plan subscription is still active (detectPlan) before listing,\n * so an expired/disabled plan returns a clear error instead of a stale/empty\n * catalog that would erase the user's synced models.\n */\nexport async function fetchVolcPlanModels(\n  kind: VolcPlanKind,\n  cookieHeader: string,\n  csrfToken: string\n): Promise<SyncedAvailableModelInput[]> {\n  if (!cookieHeader || !csrfToken) {\n    throw new Error(\"Volcano console cookie or csrfToken is missing — re-bind the plan\");\n  }\n\n  // Validate the subscription/credentials are still live.\n  const detected = await detectPlan(kind, cookieHeader, csrfToken);\n  if (!detected.available) {\n    throw new Error(\n      `Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : \"\"} — re-bind the plan`\n    );\n  }\n\n  const cfg = PLAN_DISCOVERY_CONFIG[kind];\n  const payload: JsonRecord = { ...cfg.payload };\n  if (cfg.requiresAccountId) {\n    const accountId = extractAccountId(cookieHeader);\n    if (accountId === null) {\n      throw new Error(\n        `Volcano ${kind} plan discovery requires AccountId, but none found in console cookie — re-bind the plan`\n      );\n    }\n    payload.AccountId = accountId;\n  }\n  const result = await callConsoleApiDirect(\n    cfg.action,\n    payload,","sourceCodeStart":341,"sourceCodeEnd":377,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/providers/volcenginePlanModelDiscovery.ts#L341-L377","documentation":"Thrown by fetchVolcPlanModels after running detectPlan: the Volcano Ark plan subscription (kind-specific) is no longer available on the account — expired, disabled, or the console reports an error (appended in the message). Model listing is aborted so a stale/empty catalog never erases the user's synced models; the remedy is re-binding the plan.","triggerScenarios":"Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:359 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the plan status in the Volcano console and renew/re-subscribe if expired.","Re-bind the plan with fresh console credentials once the subscription is active again.","Inspect detected.error in logs for the underlying console API failure (auth vs. subscription state)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}