diegosouzapw/OmniRoute · error · Error
system proxy revert failed
Error message
system proxy revert failed
What it means
Sanitized catch-all from revert(): restoring the platform's prior proxy configuration (captured by a previous apply()) threw and the error was collapsed to this sentinel. Means the system may still point at the OmniRoute proxy — revert did not complete; the operator may need to reset OS proxy settings manually. Unknown/invalid previousState payloads are silently ignored (no-op) before this path.
Solutions
- Manually clear the system proxy settings (OS network panel) if stale
- Retry revert() with the original ApplyResult payload
- Check privileges and system command availability on the host
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/mitm/inspector/systemProxyConfig.ts:292 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/87bd420c441c165e.
Report an issue: GitHub.
Appendix: source
Thrown at src/mitm/inspector/systemProxyConfig.ts:292
} catch (err) {
throw new Error(sanitizeErrorMessage(err) || "system proxy apply failed");
}
}
/**
* Restore the prior configuration captured by `apply()`. No-op if the
* `previousState` payload does not match a known platform.
*/
export async function revert(previousState: PreviousState | unknown): Promise<void> {
if (!previousState || typeof previousState !== "object") return;
const state = previousState as Record<string, unknown>;
const platform = state.platform;
try {
if (platform === "macos") await macosRevert(state as unknown as MacOsPreviousState);
else if (platform === "linux") await linuxRevert(state as unknown as LinuxPreviousState);
else if (platform === "windows") await windowsRevert(state as unknown as WindowsPreviousState);
} catch (err) {
throw new Error(sanitizeErrorMessage(err) || "system proxy revert failed");
}
}
View on GitHub (pinned to a179ffed5b)