diegosouzapw/OmniRoute · error
[ARENA_ELO_SYNC] Initial sync error:
Error message
[ARENA_ELO_SYNC] Initial sync error:
What it means
startPeriodicSync's initial (pre-interval) syncArenaElo() call rejected; logged as ARENA_ELO_SYNC warning with the error message. The interval timer is still armed, so the next periodic run retries — only the boot-time population of model intelligence is delayed.
Solutions
- Wait for the first periodic tick to populate data
- Check the logged cause if it persists across restarts
- Trigger a manual sync to fill the gap
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/lib/arenaEloSync.ts:483 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/0a99d6b5a72bdb94.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/arenaEloSync.ts:483
*/
function startPeriodicSync(intervalMs?: number): void {
if (syncTimer) return; // Already running
const interval = intervalMs ?? SYNC_INTERVAL_MS;
activeSyncIntervalMs = interval;
console.log(`[ARENA_ELO_SYNC] Starting periodic sync every ${interval / 1000}s`);
// Initial sync (non-blocking)
syncArenaElo()
.then((result) => {
if (result.success) {
console.log(
`[ARENA_ELO_SYNC] Initial sync complete: ${result.modelCount} model intelligence entries`
);
}
})
.catch((err) => {
console.warn(
"[ARENA_ELO_SYNC] Initial sync error:",
err instanceof Error ? err.message : err
);
});
syncTimer = setInterval(() => {
syncArenaElo()
.then((result) => {
if (result.success) {
console.log(`[ARENA_ELO_SYNC] Periodic sync complete: ${result.modelCount} entries`);
}
})
.catch((err) => {
console.warn(
"[ARENA_ELO_SYNC] Periodic sync error:",
err instanceof Error ? err.message : err
);
});View on GitHub (pinned to a179ffed5b)