{"record":{"id":"2138f0fb50f85ebc","repo":"diegosouzapw/OmniRoute","slug":"offers-sync-failed","errorCode":null,"errorMessage":"offers_sync_failed","messagePattern":"offers_sync_failed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/radar/offers/page.tsx","lineNumber":62,"sourceCode":"      setFlagOff(true);\n      return;\n    }\n    if (!response.ok) throw new Error(\"offers_load_failed\");\n    const body = (await response.json()) as { offers?: RadarOffer[]; meta?: OffersMeta | null };\n    setOffers(Array.isArray(body.offers) ? body.offers : []);\n    setMeta(body.meta ?? null);\n  }, []);\n\n  const syncAndLoad = useCallback(async () => {\n    setRefreshing(true);\n    setError(\"\");\n    try {\n      const response = await fetch(\"/api/radar/offers/sync\", { method: \"POST\" });\n      if (response.status === 404) {\n        setFlagOff(true);\n        return;\n      }\n      if (!response.ok) throw new Error(\"offers_sync_failed\");\n      const status = (await response.json()) as { status?: string; reason?: string };\n      if (status.status === \"no_key\") {\n        setHasSupporterKey(false);\n        return;\n      }\n      if (\n        status.status === \"error\" ||\n        status.status === \"invalid_signature\" ||\n        status.status === \"invalid_schema\" ||\n        status.status === \"wrong_tier\" ||\n        status.status === \"too_large\"\n      ) {\n        setError(t(\"loadFailed\"));\n      }\n      // Preserve availability: even when refresh fails, render the last\n      // verified local cache rather than clearing it.\n      await loadOffers();\n    } catch {","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/radar/offers/page.tsx#L44-L80","documentation":"Error \"offers_sync_failed\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/radar/offers/page.tsx:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}