Skip to content

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

fix(v0/search): don't sent scrape fail errors to Sentry

Gergő Móricz483f97d21b22
diff --git a/apps/api/src/controllers/v0/search.ts b/apps/api/src/controllers/v0/search.ts
index 5ef2b7676..b42f82d84 100644
--- a/apps/api/src/controllers/v0/search.ts
+++ b/apps/api/src/controllers/v0/search.ts
@@ -196,7 +196,9 @@ export async function searchController(req: Request, res: Response) {
return res.status(408).json({ error: "Request timed out" });
}
- Sentry.captureException(error);
+ if (!(error instanceof Error && error.message.startsWith('{"type":"all",'))) {
+ Sentry.captureException(error);
+ }
Logger.error(error);
return res.status(500).json({ error: error.message });
}