From 5b49dd07356efce2e542fde8bc1fdba7bdf39b32 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Fri, 16 Jan 2026 19:52:28 +0000 Subject: [PATCH] chore(fetcher): tune FlareSolverr timeouts and use other cookie variants too --- src/utils/Fetcher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index 6f97468..7472bb2 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -248,11 +248,11 @@ export class Fetcher { cmd: 'request.get', url: url.href, session: 'default', - maxTimeout: 60000, + maxTimeout: 15000, ...(proxyUrl && { proxy: { url: proxyUrl.href } }), }; - const requestConfig: CustomRequestConfig = { method: 'POST', data, headers: { 'Content-Type': 'application/json' }, timeout: 60000, queueLimit: 1 }; + const requestConfig: CustomRequestConfig = { method: 'POST', data, headers: { 'Content-Type': 'application/json' }, timeout: 15000, queueTimeout: 60000, queueLimit: 1 }; const challengeResult = JSON.parse((await this.queuedFetch(ctx, new URL('/v1', flareSolverrEndpoint), requestConfig)).data) as FlareSolverrResult; if (challengeResult.status !== 'ok') { @@ -261,7 +261,7 @@ export class Fetcher { } challengeResult.solution.cookies.forEach((cookie) => { - if (!['cf_clearance'].includes(cookie.name)) { + if (!cookie.name.startsWith('cf_') && !cookie.name.startsWith('__cf') && !cookie.name.startsWith('__ddg')) { return; }