diegosouzapw/OmniRoute · error · Error
data?.error || "Failed to connect Volcano account"
Error message
data?.error || "Failed to connect Volcano account"
What it means
Error "data?.error || "Failed to connect Volcano account"" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/providers/[id]/ProviderDetailPageClient.tsx:399
setShowOAuthModal(true);
return;
}
openApiKeyAddFlow();
}, [providerId, isOAuth, openApiKeyAddFlow]);
// Legacy manual flow: headful browser login on the machine running OmniRoute.
// Kept as the fallback for the phone/SMS auto-login modal.
const connectVolcengineAccountManually = useCallback(async () => {
setConnectingVolcengineAccount(true);
try {
const response = await fetch("/api/providers/volcengine-plan/connect", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ timeout: 300_000 }),
});
const data = await response.json().catch(() => ({}));
if (!response.ok || !data?.success) {
throw new Error(data?.error || "Failed to connect Volcano account");
}
const results = Array.isArray(data?.binding?.results) ? data.binding.results : [];
const connected = results.filter((item: any) => item?.ok).length;
const failed = results.filter((item: any) => item && item.ok === false && item.available);
if (connected > 0) {
notify.success(`Connected ${connected} Volcano plan${connected > 1 ? "s" : ""}`);
}
if (failed.length > 0) {
notify.error(
failed.map((item: any) => `${item.plan}: ${item.error || "failed"}`).join("; ")
);
}
await fetchConnections();
} catch (error) {
notify.error(error instanceof Error ? error.message : "Failed to connect Volcano account");
} finally {
setConnectingVolcengineAccount(false);
}View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/providers/[id]/ProviderDetailPageClient.tsx:399 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/cdd3e618ce1abda6.
Report an issue: GitHub.