diegosouzapw/OmniRoute · error · Error
offers_sync_failed
Error message
offers_sync_failed
What it means
Error "offers_sync_failed" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/radar/offers/page.tsx:62
setFlagOff(true);
return;
}
if (!response.ok) throw new Error("offers_load_failed");
const body = (await response.json()) as { offers?: RadarOffer[]; meta?: OffersMeta | null };
setOffers(Array.isArray(body.offers) ? body.offers : []);
setMeta(body.meta ?? null);
}, []);
const syncAndLoad = useCallback(async () => {
setRefreshing(true);
setError("");
try {
const response = await fetch("/api/radar/offers/sync", { method: "POST" });
if (response.status === 404) {
setFlagOff(true);
return;
}
if (!response.ok) throw new Error("offers_sync_failed");
const status = (await response.json()) as { status?: string; reason?: string };
if (status.status === "no_key") {
setHasSupporterKey(false);
return;
}
if (
status.status === "error" ||
status.status === "invalid_signature" ||
status.status === "invalid_schema" ||
status.status === "wrong_tier" ||
status.status === "too_large"
) {
setError(t("loadFailed"));
}
// Preserve availability: even when refresh fails, render the last
// verified local cache rather than clearing it.
await loadOffers();
} catch {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/radar/offers/page.tsx:62 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/2138f0fb50f85ebc.
Report an issue: GitHub.