{"record":{"id":"24db50e055b6659c","repo":"diegosouzapw/OmniRoute","slug":"volcano-console-cookie-or-csrftoken-is-missing-r","errorCode":null,"errorMessage":"Volcano console cookie or csrfToken is missing — re-bind the plan","messagePattern":"Volcano console cookie or csrfToken is missing — re-bind the plan","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/providers/volcenginePlanModelDiscovery.ts","lineNumber":353,"sourceCode":"  }\n  return out;\n}\n\n/**\n * Fetch the live model list for a Volcano Ark plan subscription using the\n * 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      );","sourceCodeStart":335,"sourceCodeEnd":371,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/providers/volcenginePlanModelDiscovery.ts#L335-L371","documentation":"Error \"Volcano console cookie or csrfToken is missing — re-bind the plan\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:353 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"}