Skip to content

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

Don't log EngineError to Sentry (#2613)

Abimael Martelldc73d1da93b8
diff --git a/apps/api/src/services/sentry.ts b/apps/api/src/services/sentry.ts
index 349f5b683..39b40b3d5 100644
--- a/apps/api/src/services/sentry.ts
+++ b/apps/api/src/services/sentry.ts
@@ -4,6 +4,7 @@ import { config } from "../config";
import {
AddFeatureError,
RemoveFeatureError,
+ EngineError,
} from "../scraper/scrapeURL/error";
import { AbortManagerThrownError } from "../scraper/scrapeURL/lib/abortManager";
@@ -61,7 +62,8 @@ if (config.SENTRY_DSN) {
if (
error instanceof AddFeatureError ||
error instanceof RemoveFeatureError ||
- error instanceof AbortManagerThrownError
+ error instanceof AbortManagerThrownError ||
+ error instanceof EngineError
) {
return null;
}