diegosouzapw/OmniRoute · error · Error
Failed to fetch proxies
Error message
Failed to fetch proxies
What it means
Error "Failed to fetch proxies" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/providers/[id]/hooks/useProviderConnections.ts:896
setBatchRetesting(false);
}
};
// ────────────────────────────────────────────────────────────────────────
// Proxy distribution
// ────────────────────────────────────────────────────────────────────────
const handleDistributeProxies = async (tagFilter?: string) => {
const targetConnections = tagFilter
? (connections as any[]).filter(
(c: any) => (c.providerSpecificData?.tag as string | undefined)?.trim() === tagFilter
)
: connections;
if ((targetConnections as any[]).length === 0) return;
setDistributingProxies(true);
try {
const proxiesRes = await fetch("/api/settings/proxies");
if (!proxiesRes.ok) throw new Error("Failed to fetch proxies");
const proxiesData = await proxiesRes.json();
const savedProxies = (proxiesData?.items || []).filter((p: any) => p.status === "active");
if (savedProxies.length === 0) {
notify.error(
providerText(
t,
"noSavedProxies",
"No saved proxies found. Add proxies in Settings → Proxy first."
)
);
return;
}
let assigned = 0;
const sorted = [...(targetConnections as any[])].sort(
(a: any, b: any) => (a.priority || 0) - (b.priority || 0)
);
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/providers/[id]/hooks/useProviderConnections.ts:896 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/f7bcd45a2605f6a5.
Report an issue: GitHub.