fix(autumn): add 5s timeout to Autumn SDK client

Prevents requests from hanging indefinitely if the Autumn API is
unresponsive. Without a timeout the default is -1 (no limit), which
could block awaited callers like extraction-service.

Co-Authored-By: micahstairs <micah@sideguide.dev>
This commit is contained in:
firecrawl-spring[bot]
2026-03-11 11:16:00 +00:00
parent f3c50b3349
commit 258aa444c0

View File

@@ -12,5 +12,5 @@ if (!config.AUTUMN_SECRET_KEY && !missingKeyWarned) {
}
export const autumnClient = config.AUTUMN_SECRET_KEY
? new Autumn({ secretKey: config.AUTUMN_SECRET_KEY })
? new Autumn({ secretKey: config.AUTUMN_SECRET_KEY, timeoutMs: 5000 })
: null;