Removed error response body from item fetch to minimize spamming image contents.

This commit is contained in:
DebaucheryLibrarian 2024-09-11 05:16:59 +02:00
parent b4f8605464
commit e5b1e9ea25
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ async function fetchItem(url, attempt, context) {
const res = await limiter.schedule(async () => bhttp.get(url, { headers: context.headers })); const res = await limiter.schedule(async () => bhttp.get(url, { headers: context.headers }));
if (res.statusCode !== 200) { 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)) { if (!Buffer.isBuffer(res.body)) {