{"record":{"id":"0c41db0990b9aecc","repo":"diegosouzapw/OmniRoute","slug":"http-res-status-0c41db","errorCode":null,"errorMessage":"HTTP ${res.status}","messagePattern":"HTTP \\$\\{res\\.status\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/providers/services/components/DarioAccountPanel.tsx","lineNumber":93,"sourceCode":"  const [codeInput, setCodeInput] = useState(\"\");\n  const [busy, setBusy] = useState<null | \"start\" | \"complete\">(null);\n  const [notice, setNotice] = useState<string | null>(null);\n\n  const [omniConnections, setOmniConnections] = useState<OmniConnection[]>([]);\n  const [omniLoading, setOmniLoading] = useState(false);\n  const [importBusyId, setImportBusyId] = useState<string | null>(null);\n\n  const refreshAccounts = useCallback(async () => {\n    setLoading(true);\n    setError(null);\n    try {\n      const res = await fetch(\"/api/services/dario/admin/accounts\");\n      const json = (await res.json().catch(() => null)) as {\n        accounts?: DarioAccount[];\n        error?: string;\n      } | null;\n      if (!res.ok) {\n        throw new Error(json?.error || `HTTP ${res.status}`);\n      }\n      setAccounts(Array.isArray(json?.accounts) ? json!.accounts : []);\n    } catch (err) {\n      setError(err instanceof Error ? err.message : String(err));\n    } finally {\n      setLoading(false);\n    }\n  }, []);\n\n  const refreshOmniConnections = useCallback(async () => {\n    setOmniLoading(true);\n    try {\n      const res = await fetch(\"/api/services/dario/admin/import-from-omniroute\");\n      const json = (await res.json().catch(() => null)) as {\n        connections?: OmniConnection[];\n        error?: string;\n      } | null;\n      if (res.ok) {","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/providers/services/components/DarioAccountPanel.tsx#L75-L111","documentation":"Error \"HTTP ${res.status}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/providers/services/components/DarioAccountPanel.tsx:93 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"}