Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(scrapeURL): increase timeToRun

Gergő Móricz654d6c6e0b12
diff --git a/apps/api/src/scraper/scrapeURL/index.ts b/apps/api/src/scraper/scrapeURL/index.ts
index 800457a86..93bdb71b3 100644
--- a/apps/api/src/scraper/scrapeURL/index.ts
+++ b/apps/api/src/scraper/scrapeURL/index.ts
@@ -204,7 +204,7 @@ async function scrapeURLLoop(meta: Meta): Promise<ScrapeUrlResponse> {
let result: EngineScrapeResultWithContext | null = null;
const timeToRun = meta.options.timeout !== undefined
- ? Math.round(meta.options.timeout / Math.min(fallbackList.length, 3))
+ ? Math.round(meta.options.timeout / Math.min(fallbackList.length, 2))
: undefined
for (const { engine, unsupportedFeatures } of fallbackList) {