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
Update apps/api/src/controllers/v1/extract-status.ts
Gaurav Chadhabd9b46979d27
diff --git a/apps/api/src/controllers/v1/extract-status.ts b/apps/api/src/controllers/v1/extract-status.tsindex c232d0f1c..95f33446c 100644--- a/apps/api/src/controllers/v1/extract-status.ts+++ b/apps/api/src/controllers/v1/extract-status.ts@@ -119,7 +119,7 @@ export async function extractStatusController(error: (() => {if (typeof extract?.error === "string") return extract.error;if (extract?.error && typeof extract.error === "object") {- return extract.error.message || extract.error.error || JSON.stringify(extract.error);+ return typeof extract.error.message === "string" ? extract.error.message : (typeof extract.error.error === "string" ? extract.error.error : JSON.stringify(extract.error));}return undefined;})(),