{"record":{"id":"dff0c6fe95755741","repo":"diegosouzapw/OmniRoute","slug":"http-response-status-dff0c6","errorCode":null,"errorMessage":"HTTP ${response.status}","messagePattern":"HTTP \\$\\{response\\.status\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/health/TelemetryCard.tsx","lineNumber":136,"sourceCode":"  if (criticalHit) return \"bg-red-500/10 text-red-500\";\n  if (!healthy) return \"bg-amber-500/10 text-amber-500\";\n  return \"bg-emerald-500/10 text-emerald-500\";\n}\n\nexport default function TelemetryCard() {\n  const t = useTranslations(\"telemetry\");\n  const [telemetry, setTelemetry] = useState<TelemetryPayload | null>(null);\n  const [health, setHealth] = useState<HealthPayload | null>(null);\n  const [samples, setSamples] = useState<TelemetrySample[]>([]);\n  const [loading, setLoading] = useState(true);\n  const [error, setError] = useState<string | null>(null);\n  const [lastUpdated, setLastUpdated] = useState<Date | null>(null);\n\n  const loadTelemetry = useCallback(async () => {\n    try {\n      const [telemetryResult, healthResult] = await Promise.allSettled([\n        fetch(\"/api/telemetry/summary\").then((response) => {\n          if (!response.ok) throw new Error(`HTTP ${response.status}`);\n          return response.json() as Promise<TelemetryPayload>;\n        }),\n        fetch(\"/api/monitoring/health\").then((response) => {\n          if (!response.ok) throw new Error(`HTTP ${response.status}`);\n          return response.json() as Promise<HealthPayload>;\n        }),\n      ]);\n\n      if (telemetryResult.status === \"rejected\" && healthResult.status === \"rejected\") {\n        throw telemetryResult.reason;\n      }\n\n      const nextTelemetry = telemetryResult.status === \"fulfilled\" ? telemetryResult.value : null;\n      const nextHealth = healthResult.status === \"fulfilled\" ? healthResult.value : null;\n      if (nextTelemetry) setTelemetry(nextTelemetry);\n      if (nextHealth) setHealth(nextHealth);\n      setError(null);\n      setLastUpdated(new Date());","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/health/TelemetryCard.tsx#L118-L154","documentation":"Error \"HTTP ${response.status}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/health/TelemetryCard.tsx:136 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"}