diegosouzapw/OmniRoute · error · Error

settings load failed

Error message

settings load failed

What it means

Error "settings load failed" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx:113

  const t = useTranslations("settings");
  const tRoot = useTranslations();
  const [settings, setSettings] = useState<VideoState | null>(null);
  const [runtime, setRuntime] = useState<RuntimeStatus | null>(null);
  const [errorState, setErrorState] = useState<"load" | "save" | null>(null);
  const persistedSettings = useRef<VideoState | null>(null);
  const isVisionModel = useCallback((model: ApiModel) => model.supportsVision === true, []);

  useEffect(() => {
    let cancelled = false;
    const hostname = runtimeHostname ?? window.location.hostname;
    const runtimeStatusRequest = isLoopbackDashboardHost(hostname)
      ? fetch("/api/modality-bridge/video/runtime")
          .then((response) => (response.ok ? response.json() : null))
          .catch(() => null)
      : Promise.resolve({ restricted: true });
    void Promise.all([
      fetch("/api/settings").then((response) => {
        if (!response.ok) throw new Error("settings load failed");
        return response.json();
      }),
      runtimeStatusRequest,
    ])
      .then(([settingsValue, runtimeValue]: [unknown, unknown]) => {
        if (cancelled) return;
        const loadedSettings = fromApi(settingsValue);
        persistedSettings.current = loadedSettings;
        setSettings(loadedSettings);
        setRuntime(parseRuntimeStatus(runtimeValue));
        setErrorState(null);
      })
      .catch(() => {
        if (!cancelled) setErrorState("load");
      });
    return () => {
      cancelled = true;
    };

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx:113 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/2cf8636be185ccbb. Report an issue: GitHub.