diegosouzapw/OmniRoute · error · Error
Sync failed
Error message
Sync failed
What it means
Error "Sync failed" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/shared/services/cloudSyncScheduler.ts:112
async sync() {
// Check if cloud is enabled
const enabled = await isCloudEnabled();
if (!enabled) {
return null;
}
await this.initializeMachineId();
// Call internal API route which handles both sync and token update
const response = await fetch(`${INTERNAL_BASE_URL}/api/sync/cloud`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ machineId: this.machineId, action: "sync" }),
});
if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
throw new Error(errorData.error || "Sync failed");
}
const result = await response.json();
return result;
}
/**
* Check if scheduler is running
*/
isRunning() {
return this.intervalId !== null;
}
}
// Export a singleton instance if needed
let cloudSyncScheduler: CloudSyncScheduler | null = null;
export async function getCloudSyncScheduler(machineId: string | null = null, intervalMinutes = 15) {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/shared/services/cloudSyncScheduler.ts:112 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/9a3db8bcead1e16e.
Report an issue: GitHub.