diegosouzapw/OmniRoute · error · Error
json?.error?.message || json?.error || `HTTP ${response.stat
Error message
json?.error?.message || json?.error || `HTTP ${response.status}` What it means
Error "json?.error?.message || json?.error || `HTTP ${response.status}`" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/settings/components/ResilienceTab.tsx:1049
};
void load();
return () => {
mounted = false;
};
}, [notify, tx]);
const savePatch = async (section: string, payload: Record<string, unknown>) => {
setSavingSection(section);
try {
const response = await fetch("/api/resilience", {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload),
});
const json = await response.json();
if (!response.ok) {
throw new Error(json?.error?.message || json?.error || `HTTP ${response.status}`);
}
setData(toResilienceResponse(json));
notify.success(tx("savedSuccessfully", "Resilience settings updated."));
} catch (error) {
notify.error(
error instanceof Error
? error.message
: tx("saveFailed", "Failed to save resilience settings")
);
throw error;
} finally {
setSavingSection(null);
}
};
if (loading && !data) {
return (
<Card className="p-6">View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/ResilienceTab.tsx:1049 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/b8c41fd5e95fed40.
Report an issue: GitHub.