diegosouzapw/OmniRoute · error · Error
HTTP
Error message
HTTP ${response.status} What it means
Load sentinel in ResilienceTab: the GET to /api/resilience returned non-ok and the thrown 'HTTP <status>' message carries the raw code. The resilience settings table was never populated, so breaker/cooldown defaults are not displayed; the number distinguishes auth failures (401/403) from server errors (5xx).
Solutions
- Re-authenticate if the status is 401/403
- Check server logs for /api/resilience failures on 5xx
- Retry the load — the tab renders empty until a 200 arrives
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/ResilienceTab.tsx:1017 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/e785b1831c306d85.
Report an issue: GitHub.
Appendix: source
Thrown at src/app/(dashboard)/dashboard/settings/components/ResilienceTab.tsx:1017
const [savingSection, setSavingSection] = useState<string | null>(null);
const tx = useCallback(
(key: string, fallback: string) => {
if (typeof t.has === "function" && t.has(key as never)) {
return t(key as never);
}
return fallback;
},
[t]
);
useEffect(() => {
let mounted = true;
const load = async () => {
try {
const response = await fetch("/api/resilience");
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const json = await response.json();
if (!mounted) return;
setData(toResilienceResponse(json));
} catch (error) {
notify.error(
error instanceof Error
? error.message
: tx("failedLoadResilience", "Failed to load resilience settings")
);
} finally {
if (mounted) setLoading(false);
}
};
void load();
return () => {
mounted = false;View on GitHub (pinned to a179ffed5b)