Skip to content

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

Update single_url.ts

Nicolas7ae97786428f
diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.ts
index 9a6188836..c2dcea159 100644
--- a/apps/api/src/scraper/WebScraper/single_url.ts
+++ b/apps/api/src/scraper/WebScraper/single_url.ts
@@ -96,7 +96,11 @@ export async function scrapWithFireEngine(
return { html: html ?? "", screenshot: screenshot ?? "" };
}
} catch (error) {
- console.error(`[Fire-Engine][c] Error fetching url: ${url} -> ${error}`);
+ if (error.code === 'ECONNABORTED') {
+ console.log(`[Fire-Engine] Request timed out for ${url}`);
+ } else {
+ console.error(`[Fire-Engine][c] Error fetching url: ${url} -> ${error}`);
+ }
return { html: "", screenshot: "" };
}
}