Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(api): ignore unsupported actions sentry errors (#3652)
Abimael Martell0f46ef44b919
diff --git a/apps/api/src/services/sentry.test.ts b/apps/api/src/services/sentry.test.tsindex 71f1c80bc..1e71b4de4 100644--- a/apps/api/src/services/sentry.test.ts+++ b/apps/api/src/services/sentry.test.ts@@ -89,6 +89,16 @@ describe("sentry filtering", () => {).toBe(true);});+ it("recognizes actions-not-supported Sentry exception values", () => {+ expect(+ shouldIgnoreSentryException({+ type: "Error",+ value:+ 'SCRAPE_ACTIONS_NOT_SUPPORTED|{"message":"Actions are not supported by any available engines. Actions require Fire Engine (fire-engine) to be enabled."}',+ }),+ ).toBe(true);+ });+it("recognizes cancellation errors in Sentry exception values", () => {expect(shouldIgnoreSentryException({diff --git a/apps/api/src/services/sentry.ts b/apps/api/src/services/sentry.tsindex a84550a47..7e38f119f 100644--- a/apps/api/src/services/sentry.ts+++ b/apps/api/src/services/sentry.ts@@ -40,6 +40,7 @@ const transportableErrorCodes = ["SCRAPE_PDF_PREFETCH_FAILED","SCRAPE_DOCUMENT_ANTIBOT_ERROR","SCRAPE_DOCUMENT_PREFETCH_FAILED",+ "SCRAPE_ACTIONS_NOT_SUPPORTED","SCRAPE_TIMEOUT","MAP_TIMEOUT","SCRAPE_UNKNOWN_ERROR",