Skip to content

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

fix: strip FirePDF base64 payload from robustFetch logs (#3321)

Abimael Martell9b98bc8982c5
diff --git a/apps/api/src/scraper/scrapeURL/lib/fetch.ts b/apps/api/src/scraper/scrapeURL/lib/fetch.ts
index 6d87b0ffc..4faaf8a9d 100644
--- a/apps/api/src/scraper/scrapeURL/lib/fetch.ts
+++ b/apps/api/src/scraper/scrapeURL/lib/fetch.ts
@@ -91,7 +91,12 @@ export async function robustFetch<
file_content: undefined,
},
}
- : body,
+ : body?.pdf
+ ? {
+ ...body,
+ pdf: undefined,
+ }
+ : body,
logger: undefined,
};