diegosouzapw/OmniRoute · error · Error
Volcano console cookie or csrfToken is missing
Error message
Volcano console cookie or csrfToken is missing
What it means
Guard at the start of bindVolcenginePlansFromConsoleCredentials: the supplied credentials JSON yields neither a valid Volcano console cookie header nor a CSRF token (missing fields or unparseable cookie string), so plan binding cannot authenticate against the Volcano console and is aborted before any API call. A configuration/input error, not transient.
Solutions
- Re-export fresh console cookies from the Volcano console and re-enter them in the connection credentials.
- Ensure both the cookie header and csrfToken fields are present and non-empty in the credentials JSON.
- Check the cookie parsing helpers for format changes in Volcano's console cookie layout.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/providers/volcenginePlanBinding.ts:224 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/47e4dc8889ad68ad.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/providers/volcenginePlanBinding.ts:224
});
}
return await createProviderConnection({
provider: cfg.provider,
authType: "apikey",
name: cfg.name,
apiKey,
providerSpecificData,
isActive: true,
testStatus: "active",
});
}
export async function bindVolcenginePlansFromConsoleCredentials(credentials: JsonRecord) {
const cookieHeader = buildCookieHeader(credentials);
const csrfToken = extractCsrf(credentials, cookieHeader);
if (!cookieHeader || !csrfToken) {
throw new Error("Volcano console cookie or csrfToken is missing");
}
const results: Array<{
plan: PlanKind;
available: boolean;
ok: boolean;
connectionId?: string;
apiKeyId?: number | null;
maskedKey?: string | null;
error?: string | null;
}> = [];
for (const kind of ["coding", "agent"] as PlanKind[]) {
const detected = await detectPlan(kind, cookieHeader, csrfToken);
if (!detected.available) {
results.push({ plan: kind, available: false, ok: false, error: detected.error });
continue;
}View on GitHub (pinned to a179ffed5b)