{"record":{"id":"47e4dc8889ad68ad","repo":"diegosouzapw/OmniRoute","slug":"volcano-console-cookie-or-csrftoken-is-missing","errorCode":null,"errorMessage":"Volcano console cookie or csrfToken is missing","messagePattern":"Volcano console cookie or csrfToken is missing","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/providers/volcenginePlanBinding.ts","lineNumber":224,"sourceCode":"    });\n  }\n\n  return await createProviderConnection({\n    provider: cfg.provider,\n    authType: \"apikey\",\n    name: cfg.name,\n    apiKey,\n    providerSpecificData,\n    isActive: true,\n    testStatus: \"active\",\n  });\n}\n\nexport async function bindVolcenginePlansFromConsoleCredentials(credentials: JsonRecord) {\n  const cookieHeader = buildCookieHeader(credentials);\n  const csrfToken = extractCsrf(credentials, cookieHeader);\n  if (!cookieHeader || !csrfToken) {\n    throw new Error(\"Volcano console cookie or csrfToken is missing\");\n  }\n\n  const results: Array<{\n    plan: PlanKind;\n    available: boolean;\n    ok: boolean;\n    connectionId?: string;\n    apiKeyId?: number | null;\n    maskedKey?: string | null;\n    error?: string | null;\n  }> = [];\n\n  for (const kind of [\"coding\", \"agent\"] as PlanKind[]) {\n    const detected = await detectPlan(kind, cookieHeader, csrfToken);\n    if (!detected.available) {\n      results.push({ plan: kind, available: false, ok: false, error: detected.error });\n      continue;\n    }","sourceCodeStart":206,"sourceCodeEnd":242,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/providers/volcenginePlanBinding.ts#L206-L242","documentation":"Error \"Volcano console cookie or csrfToken is missing\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/providers/volcenginePlanBinding.ts:224 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"}