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
fix(api): use correct column name in crawl-errors Supabase fallback path (#3256)
firecrawl-spring[bot]504b831eca0e
diff --git a/apps/api/src/controllers/v1/crawl-errors.ts b/apps/api/src/controllers/v1/crawl-errors.tsindex ffe321330..2067d89f0 100644--- a/apps/api/src/controllers/v1/crawl-errors.ts+++ b/apps/api/src/controllers/v1/crawl-errors.ts@@ -115,7 +115,7 @@ export async function crawlErrorsController(.select("*").eq("request_id", req.params.jobId).eq("team_id", req.auth.team_id)- .eq("success", false)+ .eq("is_successful", false).throwOnError();if (failedScrapesError) {@@ -127,9 +127,11 @@ export async function crawlErrorsController(res.status(200).json({errors: (failedScrapes || []).map(scrape => {- const error = deserializeTransportableError(- scrape.error,- ) as TransportableError | null;+ const error = scrape.error+ ? (deserializeTransportableError(+ scrape.error,+ ) as TransportableError | null)+ : null;return {id: scrape.id,timestamp:@@ -143,7 +145,7 @@ export async function crawlErrorsController(error: error.message,}: {- error: scrape.error,+ error: scrape.error ?? "An unknown error occurred",}),};}),diff --git a/apps/api/src/controllers/v2/crawl-errors.ts b/apps/api/src/controllers/v2/crawl-errors.tsindex ffe321330..2067d89f0 100644--- a/apps/api/src/controllers/v2/crawl-errors.ts+++ b/apps/api/src/controllers/v2/crawl-errors.ts@@ -115,7 +115,7 @@ export async function crawlErrorsController(.select("*").eq("request_id", req.params.jobId).eq("team_id", req.auth.team_id)- .eq("success", false)+ .eq("is_successful", false).throwOnError();if (failedScrapesError) {@@ -127,9 +127,11 @@ export async function crawlErrorsController(res.status(200).json({errors: (failedScrapes || []).map(scrape => {- const error = deserializeTransportableError(- scrape.error,- ) as TransportableError | null;+ const error = scrape.error+ ? (deserializeTransportableError(+ scrape.error,+ ) as TransportableError | null)+ : null;return {id: scrape.id,timestamp:@@ -143,7 +145,7 @@ export async function crawlErrorsController(error: error.message,}: {- error: scrape.error,+ error: scrape.error ?? "An unknown error occurred",}),};}),