Skip to content

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

fix(v0, sentry): don't send all scraping methods failed errors to Sentry

Gergő Móricz83d8287c143c
diff --git a/apps/api/src/controllers/v0/scrape.ts b/apps/api/src/controllers/v0/scrape.ts
index de6cf0327..22c694d0b 100644
--- a/apps/api/src/controllers/v0/scrape.ts
+++ b/apps/api/src/controllers/v0/scrape.ts
@@ -283,8 +283,6 @@ export async function scrapeController(req: Request, res: Response) {
return res.status(result.returnCode).json(result);
} catch (error) {
- Sentry.captureException(error);
- Logger.error(error);
if (typeof error === "string" && error.startsWith("{\"type\":\"all\",")) {
return res.status(500).json({
success: false,
@@ -292,6 +290,8 @@ export async function scrapeController(req: Request, res: Response) {
details: JSON.parse(error).errors as string[],
});
} else {
+ Sentry.captureException(error);
+ Logger.error(error);
return res.status(500).json({
error:
typeof error === "string"