Skip to content

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

fix(api): use logParams in robustFetch error cause to prevent base64 log pollution (#3353)

Abimael Martell1c901c59638c
diff --git a/apps/api/src/scraper/scrapeURL/lib/fetch.ts b/apps/api/src/scraper/scrapeURL/lib/fetch.ts
index 4faaf8a9d..59c26f45f 100644
--- a/apps/api/src/scraper/scrapeURL/lib/fetch.ts
+++ b/apps/api/src/scraper/scrapeURL/lib/fetch.ts
@@ -157,7 +157,7 @@ export async function robustFetch<
});
throw new Error("Request failed", {
cause: {
- params,
+ params: logParams,
requestId,
error,
},