{"record":{"id":"a6093d9fef38f6f0","repo":"diegosouzapw/OmniRoute","slug":"http-res-status-a6093d","errorCode":null,"errorMessage":"HTTP ${res.status}","messagePattern":"HTTP \\$\\{res\\.status\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/health/page.tsx","lineNumber":83,"sourceCode":"  const nodeMap = useProviderNodeMap();\n  const [data, setData] = useState(null);\n  const [dbHealth, setDbHealth] = useState(null);\n  const [dbHealthError, setDbHealthError] = useState(null);\n  const [error, setError] = useState(null);\n  const [lastRefresh, setLastRefresh] = useState(null);\n  const [cache, setCache] = useState(null);\n  const [signatureCache, setSignatureCache] = useState(null);\n  const [degradation, setDegradation] = useState(null);\n  const [resetting, setResetting] = useState(false);\n  const [repairingDb, setRepairingDb] = useState(false);\n  const [unblocking, setUnblocking] = useState(false);\n  const [unblockingKey, setUnblockingKey] = useState<string | null>(null);\n  const [showAdvanced, setShowAdvanced] = useState(false);\n\n  const fetchHealth = useCallback(async () => {\n    try {\n      const res = await fetch(\"/api/monitoring/health\");\n      if (!res.ok) throw new Error(`HTTP ${res.status}`);\n      const json = await res.json();\n      setData(json);\n      setError(null);\n      setLastRefresh(new Date());\n    } catch (err) {\n      setError(err.message);\n    }\n  }, []);\n\n  const fetchDbHealth = useCallback(async () => {\n    try {\n      const res = await fetch(\"/api/db/health\");\n      if (!res.ok) throw new Error(`HTTP ${res.status}`);\n      const json = await res.json();\n      setDbHealth(json);\n      setDbHealthError(null);\n    } catch (err) {\n      setDbHealthError(err.message);","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/health/page.tsx#L65-L101","documentation":"Error \"HTTP ${res.status}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/health/page.tsx:83 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"}