diegosouzapw/OmniRoute · error · Error
settings load failed
Error message
settings load failed
What it means
Bare load sentinel in the modality-bridge video tab: a settings read (fetch of video-bridge settings, distinct from the runtime-status request) rejected or threw, and the component sets errorState='load' with the fixed message 'settings load failed'. It means persisted video bridge settings were not fetched — the tab renders without the saved configuration.
Solutions
- Check the settings fetch status/body in the network tab for the real reason
- Confirm session auth and that the video settings keys exist server-side
- Reload the tab; persistedSettings stays null until a successful read
Defensive patterns
Strategy: try-catch
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.
Appendix: 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)