Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
feat(v1/scrape): add more context to timeout logs
Gergő Móricz0013bdfcb4bd
diff --git a/apps/api/src/controllers/v1/scrape.ts b/apps/api/src/controllers/v1/scrape.tsindex ddd5da743..f1fe3431b 100644--- a/apps/api/src/controllers/v1/scrape.ts+++ b/apps/api/src/controllers/v1/scrape.ts@@ -60,7 +60,7 @@ export async function scrapeController(try {doc = await waitForJob<Document>(jobId, timeout + totalWait); // TODO: better types for this} catch (e) {- logger.error(`Error in scrapeController: ${e}`);+ logger.error(`Error in scrapeController: ${e}`, { jobId, scrapeId: jobId, startTime });if (e instanceof Error &&(e.message.startsWith("Job wait") || e.message === "timeout")