diegosouzapw/OmniRoute · error
[QuotaSnapshots] Skipping save: quota_snapshots table not fo
Error message
[QuotaSnapshots] Skipping save: quota_snapshots table not found. Awaiting migration.
What it means
Error "[QuotaSnapshots] Skipping save: quota_snapshots table not found. Awaiting migration." thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/db/quotaSnapshots.ts:41
db.prepare(
`INSERT INTO quota_snapshots
(provider, connection_id, window_key, remaining_percentage, is_exhausted,
next_reset_at, window_duration_ms, raw_data, created_at)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`
).run(
snapshot.provider,
snapshot.connection_id,
snapshot.window_key,
snapshot.remaining_percentage,
snapshot.is_exhausted,
snapshot.next_reset_at,
snapshot.window_duration_ms,
snapshot.raw_data,
now
);
} catch (err: any) {
if (err?.message?.includes("no such table")) {
console.warn(
"[QuotaSnapshots] Skipping save: quota_snapshots table not found. Awaiting migration."
);
return;
}
throw err;
}
}
export function getQuotaSnapshots(opts: {
provider?: string;
connectionId?: string;
since: string;
until?: string;
}): QuotaSnapshotRow[] {
const db = getDbInstance() as unknown as DbLike;
const conditions: string[] = ["created_at >= ?"];
const params: unknown[] = [opts.since];
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/db/quotaSnapshots.ts:41 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/5772c5a5e85e3a23.
Report an issue: GitHub.