diegosouzapw/OmniRoute · error · Error
Volcano plan discovery requires AccountId, but none found…
Error message
Volcano ${kind} plan discovery requires AccountId, but none found in console cookie — re-bind the plan What it means
Guard in fetchVolcPlanModels for plans whose discovery API requires an AccountId: extractAccountId could not find one in the stored console cookie, so the discovery request payload would be incomplete. Indicates the cookie is from a different console session/format or was captured before login completed; re-binding regenerates a cookie that contains the AccountId.
Solutions
- Re-bind the plan exporting cookies from a fully logged-in console session so the AccountId cookie is present.
- Verify extractAccountId's cookie-name expectations against the current Volcano console cookie layout.
- Use an account whose console session exposes the AccountId (some SSO flows may omit it).
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:369 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/c8d681de345fbe30.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/providers/volcenginePlanModelDiscovery.ts:369
): Promise<SyncedAvailableModelInput[]> {
if (!cookieHeader || !csrfToken) {
throw new Error("Volcano console cookie or csrfToken is missing — re-bind the plan");
}
// Validate the subscription/credentials are still live.
const detected = await detectPlan(kind, cookieHeader, csrfToken);
if (!detected.available) {
throw new Error(
`Volcano ${kind} plan unavailable${detected.error ? `: ${detected.error}` : ""} — re-bind the plan`
);
}
const cfg = PLAN_DISCOVERY_CONFIG[kind];
const payload: JsonRecord = { ...cfg.payload };
if (cfg.requiresAccountId) {
const accountId = extractAccountId(cookieHeader);
if (accountId === null) {
throw new Error(
`Volcano ${kind} plan discovery requires AccountId, but none found in console cookie — re-bind the plan`
);
}
payload.AccountId = accountId;
}
const result = await callConsoleApiDirect(
cfg.action,
payload,
cookieHeader,
csrfToken,
cfg.referer
);
if (!result.ok) {
throw new Error(
`Volcano ${kind} plan model discovery (${cfg.action}) failed${result.error ? `: ${result.error}` : ""}`
);
}
View on GitHub (pinned to a179ffed5b)