diegosouzapw/OmniRoute · error · Error
HTTP ${settingsRes.status}
Error message
HTTP ${settingsRes.status} What it means
Error "HTTP ${settingsRes.status}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/radar/page.tsx:171
});
} catch {
// Best-effort only.
}
}, []);
// Fetch settings to determine opt-in state (GET /api/radar/settings — FIX 3:
// previously there was no settings GET, so an already-opted-in operator saw
// the activation screen on every reload).
const fetchSettings = useCallback(async () => {
try {
const settingsRes = await fetch("/api/radar/settings", { cache: "no-store" });
if (settingsRes.status === 404) {
// Flag off
setFeatureAvailable(false);
setOptIn(null);
return;
}
if (!settingsRes.ok) throw new Error(`HTTP ${settingsRes.status}`);
const settingsData = await settingsRes.json();
setFeatureAvailable(true);
setOptIn(settingsData.optIn === true);
setHasSupporterKey(settingsData.hasSupporterKey === true);
setSupporterKeyMasked(
typeof settingsData.supporterKeyMasked === "string" ? settingsData.supporterKeyMasked : null
);
// F4/T7 — best-effort: keep whatever we already had if the field is
// absent (older cached response shape), never fall back to a literal.
if (typeof settingsData.contributorClaimUrl === "string") {
setContributorClaimUrl(settingsData.contributorClaimUrl);
}
if (typeof settingsData.supporterPlansUrl === "string") {
setSupporterPlansUrl(settingsData.supporterPlansUrl);
}
if (settingsData.optIn === true) {
// Already opted in — load the catalog now so the populated/emptyView on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/radar/page.tsx:171 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/17a27c72a4b26c51.
Report an issue: GitHub.