{"record":{"id":"0a99d6b5a72bdb94","repo":"diegosouzapw/OmniRoute","slug":"arena-elo-sync-initial-sync-error","errorCode":null,"errorMessage":"[ARENA_ELO_SYNC] Initial sync error:","messagePattern":"\\[ARENA_ELO_SYNC\\] Initial sync error:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/lib/arenaEloSync.ts","lineNumber":483,"sourceCode":" */\nfunction startPeriodicSync(intervalMs?: number): void {\n  if (syncTimer) return; // Already running\n\n  const interval = intervalMs ?? SYNC_INTERVAL_MS;\n  activeSyncIntervalMs = interval;\n  console.log(`[ARENA_ELO_SYNC] Starting periodic sync every ${interval / 1000}s`);\n\n  // Initial sync (non-blocking)\n  syncArenaElo()\n    .then((result) => {\n      if (result.success) {\n        console.log(\n          `[ARENA_ELO_SYNC] Initial sync complete: ${result.modelCount} model intelligence entries`\n        );\n      }\n    })\n    .catch((err) => {\n      console.warn(\n        \"[ARENA_ELO_SYNC] Initial sync error:\",\n        err instanceof Error ? err.message : err\n      );\n    });\n\n  syncTimer = setInterval(() => {\n    syncArenaElo()\n      .then((result) => {\n        if (result.success) {\n          console.log(`[ARENA_ELO_SYNC] Periodic sync complete: ${result.modelCount} entries`);\n        }\n      })\n      .catch((err) => {\n        console.warn(\n          \"[ARENA_ELO_SYNC] Periodic sync error:\",\n          err instanceof Error ? err.message : err\n        );\n      });","sourceCodeStart":465,"sourceCodeEnd":501,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/arenaEloSync.ts#L465-L501","documentation":"Error \"[ARENA_ELO_SYNC] Initial sync error:\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/arenaEloSync.ts:483 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}