{"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":"Error \"Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : \"\"} — re-bind the plan\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:359 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":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}