mirror of
https://github.com/firecrawl/firecrawl.git
synced 2026-03-13 08:21:20 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user