Skip to content

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

fix:

Gergő Móricz1b7c87b1a00a
diff --git a/apps/api/src/lib/error-serde.ts b/apps/api/src/lib/error-serde.ts
index eb5d114d9..fabe2e04d 100644
--- a/apps/api/src/lib/error-serde.ts
+++ b/apps/api/src/lib/error-serde.ts
@@ -17,6 +17,7 @@ import {
PDFPrefetchFailed,
SiteError,
SSLError,
+ ProxySelectionError,
} from "../scraper/scrapeURL/error";
// TODO: figure out correct typing for this
@@ -27,6 +28,7 @@ const errorMap: Record<ErrorCodes, any> = {
SCRAPE_ALL_ENGINES_FAILED: NoEnginesLeftError,
SCRAPE_SSL_ERROR: SSLError,
SCRAPE_SITE_ERROR: SiteError,
+ SCRAPE_PROXY_SELECTION_ERROR: ProxySelectionError,
SCRAPE_PDF_PREFETCH_FAILED: PDFPrefetchFailed,
SCRAPE_ZDR_VIOLATION_ERROR: ZDRViolationError,
SCRAPE_DNS_RESOLUTION_ERROR: DNSResolutionError,