Skip to content

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

fix(scrapeURL): invalid Add/RemoveFeatureError handling

Gergő Móricz34214ff12027
diff --git a/apps/api/src/scraper/scrapeURL/index.ts b/apps/api/src/scraper/scrapeURL/index.ts
index 86cd7bee1..3106e8217 100644
--- a/apps/api/src/scraper/scrapeURL/index.ts
+++ b/apps/api/src/scraper/scrapeURL/index.ts
@@ -455,6 +455,8 @@ async function scrapeURLLoop(meta: Meta): Promise<ScrapeUrlResponse> {
}
// Otherwise, just keep racing
+ } else if (error instanceof AddFeatureError || error instanceof RemoveFeatureError) {
+ throw error;
} else if (error instanceof WaterfallNextEngineSignal) {
// It's time to waterfall the next engine
break;