diegosouzapw/OmniRoute · error · Error
Settings conflict — refresh and retry
Error message
Settings conflict — refresh and retry
What it means
Error "Settings conflict — refresh and retry" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/settings/components/ModelAliasesUnified.tsx:130
try {
const settingsRes = await fetch("/api/settings", { cache: "no-store" });
if (!settingsRes.ok) throw new Error("Failed to load current settings");
const settingsData = await settingsRes.json();
const revision =
typeof settingsData.settingsRevision === "number" ? settingsData.settingsRevision : 0;
const currentWildcards = Array.isArray(settingsData.wildcardAliases)
? settingsData.wildcardAliases
: wildcardAliases;
const updated = [
...currentWildcards,
{ pattern: fromValue.trim(), target: toValue.trim() },
];
const res = await fetch("/api/settings", {
method: "PATCH",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ wildcardAliases: updated, expectedRevision: revision }),
});
if (res.status === 409) throw new Error("Settings conflict — refresh and retry");
if (!res.ok) throw new Error("Failed to save wildcard alias");
setWildcardAliases(updated);
setFromValue("");
setToValue("");
showStatus("success", translateOrFallback(t, "saved", "Saved"));
} catch (error) {
console.error("Failed to save wildcard alias:", error);
showStatus("error", translateOrFallback(t, "errorOccurred", "An error occurred"));
} finally {
setSaving(false);
}
};
const removeWildcardAlias = async (index: number) => {
setSaving(true);
try {
const settingsRes = await fetch("/api/settings", { cache: "no-store" });
if (!settingsRes.ok) throw new Error("Failed to load current settings");View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/ModelAliasesUnified.tsx:130 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/149f02a3c8c1421f.
Report an issue: GitHub.