diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 3c14cc6..53125a1 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -82,8 +82,9 @@ export class Fetcher { this.logger.info(`Query FlareSolverr for ${url.href}`, ctx); const body = { cmd: 'request.get', url: url.href, session: 'default' }; - const challengeResult = await (await fetch(new URL(flareSolverrEndpoint), { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' } })).json(); + const challengeResult = await (await this.queuedFetch(ctx, new URL(flareSolverrEndpoint), { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' } })).json(); if (challengeResult.status !== 'ok') { + this.logger.warn(`FlareSolverr issue: ${JSON.stringify(challengeResult)}`, ctx); throw new BlockedError('flaresolverr_failed', {}); }