diegosouzapw/OmniRoute · error
Proxy fallback auto-selection failed
Error message
Proxy fallback auto-selection failed
What it means
The automatic fallback proxy selection (probing registered proxies to find a working one after the primary proxy failed) errored out. The request will proceed without a working fallback proxy — likely direct connection or failure depending on the resolution path — rather than via an auto-selected alternate.
Solutions
- Check health/credentials of registered proxy fallbacks
- Fix the probe error shown in logs (network egress, DNS, timeouts)
- Re-register or re-probe the proxy pool
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/lib/db/settings.ts:770 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/844aee721015f298.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/db/settings.ts:770
const fallback = await selectWorkingProxyFallback(connectionId);
if (fallback) {
// Auto-selected proxies are probed via a URL roundtrip that drops any
// per-registry family policy, so default the family marker to "auto"
// (no IPv6-only enforcement) when the fallback object omits it.
const normalizedFallback =
fallback.proxy && typeof fallback.proxy === "object"
? { ...fallback, proxy: withFamilyDefault(fallback.proxy as ProxyValue) }
: fallback;
cacheProxyResolution(
cacheKey,
startGeneration,
startRegistryGeneration,
normalizedFallback as ProxyResolutionResult
);
return normalizedFallback;
}
} catch (err) {
console.warn({ err, connectionId }, "Proxy fallback auto-selection failed");
}
// Step 12: Return direct
return { proxy: null, level: "direct", levelId: null };
}
export async function setProxyConfig(config: Record<string, unknown>) {
if (config.level !== undefined) {
const level = typeof config.level === "string" ? config.level : "global";
const id = typeof config.id === "string" ? config.id : null;
const proxy = (config.proxy as ProxyValue) || null;
return setProxyForLevel(level, id, proxy);
}
const db = getDbInstance();
const current = await getProxyConfig();
const insert = db.prepare(
"INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('proxyConfig', ?, ?)"View on GitHub (pinned to a179ffed5b)