From 6cf31f60de8e5f6bcff4d2b6254f5fc160f05ef6 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Sun, 15 Jun 2025 11:34:09 +0000 Subject: [PATCH] chore(fetcher): increase general timeouts --- src/utils/Fetcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 7f1b4ae..cff4a3b 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -118,7 +118,7 @@ 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 this.queuedFetch(ctx, new URL(flareSolverrEndpoint), { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' }, queueLimit: 1, timeout: 10000 })).json() as FlareSolverrResult; + const challengeResult = await (await this.queuedFetch(ctx, new URL(flareSolverrEndpoint), { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' }, queueLimit: 1, timeout: 15000 })).json() as FlareSolverrResult; if (challengeResult.status !== 'ok') { this.logger.warn(`FlareSolverr issue: ${JSON.stringify(challengeResult)}`, ctx); throw new BlockedError(BlockedReason.flaresolverr_failed, {}); @@ -226,7 +226,7 @@ export class Fetcher { } const controller = new AbortController(); - const timer = setTimeout(() => controller.abort(TIMEOUT), init?.timeout ?? 5000); + const timer = setTimeout(() => controller.abort(TIMEOUT), init?.timeout ?? 10000); let response; try {