From e5b1e9ea253a93d1fa8a7726b97f4a6f3362a5dd Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 11 Sep 2024 05:16:59 +0200 Subject: [PATCH] Removed error response body from item fetch to minimize spamming image contents. --- src/fetch/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch/item.js b/src/fetch/item.js index 820fbe4..fe7982c 100644 --- a/src/fetch/item.js +++ b/src/fetch/item.js @@ -25,7 +25,7 @@ async function fetchItem(url, attempt, context) { const res = await limiter.schedule(async () => bhttp.get(url, { headers: context.headers })); if (res.statusCode !== 200) { - throw new Error(`Response not OK for ${url} (${res.statusCode}): ${res.body.toString()}`); + throw new Error(`Response not OK for ${url} (${res.statusCode})`); } if (!Buffer.isBuffer(res.body)) {