Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
Charge usage when Autumn is slow: 10s SDK timeout (EVE-321) (#689)
Carter Smitha661961697eb
diff --git a/src/server/billing/autumn.ts b/src/server/billing/autumn.tsindex 8f3ebe8d..c3849a48 100644--- a/src/server/billing/autumn.ts+++ b/src/server/billing/autumn.ts@@ -11,6 +11,11 @@ function loadAutumn(): Promise<Autumn> {({ Autumn }) =>new Autumn({secretKey: () => getRequiredEnvValue("AUTUMN_SECRET_KEY"),+ // Without this client-wide value the SDK aborts check/track after+ // 5s; a per-call timeoutMs cannot raise it. A timed-out call fails+ // open: track then never charges the usage, and check returns no+ // balance.+ timeoutMs: 10_000,// Retries 429/500/502/503/504 (per-operation retryCodes) plus// connection errors. Cloudflare 52x statuses are not in the SDK's// retry list, so those still surface immediately.