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(scrapeURL): do not submit LLM schema errors to Sentry
Gergő Móricz25e94ffd285a
diff --git a/apps/api/src/scraper/scrapeURL/index.ts b/apps/api/src/scraper/scrapeURL/index.tsindex 738c8380f..27a8f579d 100644--- a/apps/api/src/scraper/scrapeURL/index.ts+++ b/apps/api/src/scraper/scrapeURL/index.ts@@ -304,6 +304,9 @@ export async function scrapeURL(} else if (error instanceof LLMRefusalError) {meta.logger.warn("scrapeURL: LLM refused to extract content", { error });results = error.results!;+ } else if (error instanceof Error && error.message.includes("Invalid schema for response_format")) { // TODO: seperate into custom error+ meta.logger.warn("scrapeURL: LLM schema error", { error });+ // TODO: results?} else {Sentry.captureException(error);meta.logger.error("scrapeURL: Unexpected error happened", { error });