diegosouzapw/OmniRoute · error · Error

settings save failed

Error message

settings save failed

What it means

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

Source

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

        setErrorState(null);
      })
      .catch(() => {
        if (!cancelled) setErrorState("load");
      });
    return () => {
      cancelled = true;
    };
  }, [runtimeHostname]);

  const update = async (patch: Partial<VideoState>) => {
    setErrorState(null);
    try {
      const response = await fetch("/api/settings", {
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify(patch),
      });
      if (!response.ok) throw new Error("settings save failed");
      const saved = persistedSettings.current
        ? { ...persistedSettings.current, ...patch }
        : persistedSettings.current;
      persistedSettings.current = saved;
      setSettings((previous) => (previous ? { ...previous, ...patch } : previous));
    } catch {
      setSettings(persistedSettings.current);
      setErrorState("save");
    }
  };

  if (errorState === "load") {
    return <div role="alert">{tRoot("publicSystem.error.title")}</div>;
  }
  if (!settings) return null;

  const setLocal = (patch: Partial<VideoState>) => {
    setSettings((previous) => (previous ? { ...previous, ...patch } : previous));

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeVideoTab.tsx:142 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/5a66b3d309b87d43. Report an issue: GitHub.