diegosouzapw/OmniRoute · error

[STARTUP] Pricing sync failed to start (non-fatal):

Error message

[STARTUP] Pricing sync failed to start (non-fatal):

What it means

Startup warning (non-fatal): the opt-in external pricing sync subsystem failed to initialize (dynamic import or scheduler start threw). Live pricing data will stay stale until the next successful init; request serving is unaffected.

Solutions

  1. Check the pricing source reachability
  2. Restart to retry
  3. Verify pricing sync settings if custom sources are configured
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/instrumentation-node.ts:610 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/1a58c33ed80f3b0d. Report an issue: GitHub.

Appendix: source

Thrown at src/instrumentation-node.ts:610

      // opt-in are already on (flag-off boot stays timer-free — Radar inertia
      // contract). Non-blocking, never fatal.
      import("@/lib/radar/scheduler")
        .then((m) => {
          const started = m.initRadarSyncScheduler();
          if (started) console.log("[STARTUP] Radar sync scheduler initialized");
        })
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn("[STARTUP] Radar sync scheduler failed to start (non-fatal):", msg);
        }),

      // Pricing sync: opt-in external pricing data (self-gated by PRICING_SYNC_ENABLED inside
      // initPricingSync). Non-blocking, never fatal.
      import("@/lib/pricingSync")
        .then((m) => m.initPricingSync())
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn("[STARTUP] Pricing sync failed to start (non-fatal):", msg);
        }),

      // OpenRouter provider stats sync: provider directory + popularity enrichment
      // for the dashboard Providers page. On by default; opt out with
      // OPENROUTER_PROVIDER_STATS_ENABLED=false. Non-blocking, never fatal.
      import("@/lib/catalog/openrouterProviderStats")
        .then((m) => {
          const started = m.initOpenRouterProviderStatsSync();
          if (started) console.log("[STARTUP] OpenRouter provider stats sync initialized");
        })
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn(
            "[STARTUP] OpenRouter provider stats sync failed to start (non-fatal):",
            msg
          );
        }),

View on GitHub (pinned to a179ffed5b)