{"record":{"id":"2cf8636be185ccbb","repo":"diegosouzapw/OmniRoute","slug":"settings-load-failed-2cf863","errorCode":null,"errorMessage":"settings load failed","messagePattern":"settings load failed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx","lineNumber":113,"sourceCode":"  const t = useTranslations(\"settings\");\n  const tRoot = useTranslations();\n  const [settings, setSettings] = useState<VideoState | null>(null);\n  const [runtime, setRuntime] = useState<RuntimeStatus | null>(null);\n  const [errorState, setErrorState] = useState<\"load\" | \"save\" | null>(null);\n  const persistedSettings = useRef<VideoState | null>(null);\n  const isVisionModel = useCallback((model: ApiModel) => model.supportsVision === true, []);\n\n  useEffect(() => {\n    let cancelled = false;\n    const hostname = runtimeHostname ?? window.location.hostname;\n    const runtimeStatusRequest = isLoopbackDashboardHost(hostname)\n      ? fetch(\"/api/modality-bridge/video/runtime\")\n          .then((response) => (response.ok ? response.json() : null))\n          .catch(() => null)\n      : Promise.resolve({ restricted: true });\n    void Promise.all([\n      fetch(\"/api/settings\").then((response) => {\n        if (!response.ok) throw new Error(\"settings load failed\");\n        return response.json();\n      }),\n      runtimeStatusRequest,\n    ])\n      .then(([settingsValue, runtimeValue]: [unknown, unknown]) => {\n        if (cancelled) return;\n        const loadedSettings = fromApi(settingsValue);\n        persistedSettings.current = loadedSettings;\n        setSettings(loadedSettings);\n        setRuntime(parseRuntimeStatus(runtimeValue));\n        setErrorState(null);\n      })\n      .catch(() => {\n        if (!cancelled) setErrorState(\"load\");\n      });\n    return () => {\n      cancelled = true;\n    };","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx#L95-L131","documentation":"Error \"settings load failed\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx:113 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"}