From 243eaa834bcf4e294634686ddb942d57ab0c2b68 Mon Sep 17 00:00:00 2001 From: webstreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 20 May 2025 21:15:37 +0200 Subject: [PATCH 1/2] chore (fetcher): increase timeout to 15s --- src/utils/Fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Fetcher.ts b/src/utils/Fetcher.ts index e00f3d8..9c2368c 100644 --- a/src/utils/Fetcher.ts +++ b/src/utils/Fetcher.ts @@ -34,7 +34,7 @@ export class Fetcher { private readonly getConfig = (ctx: Context, url: URL, config?: AxiosRequestConfig): AxiosRequestConfig => { return { responseType: 'text', - timeout: 10000, + timeout: 15000, ...config, headers: { 'User-Agent': this.createUserAgentForIp(ctx.ip), -- 2.45.2 From 5a8f12b1ba2ac4691a2789635d61fd61c23a7eb9 Mon Sep 17 00:00:00 2001 From: webstreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 20 May 2025 21:16:35 +0200 Subject: [PATCH 2/2] Update tests --- src/utils/Fetcher.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/Fetcher.test.ts b/src/utils/Fetcher.test.ts index 15ca8ba..06ad38a 100644 --- a/src/utils/Fetcher.test.ts +++ b/src/utils/Fetcher.test.ts @@ -29,7 +29,7 @@ describe('fetch', () => { 'Referer': 'https://some-url.test', }, responseType: 'text', - timeout: 10000, + timeout: 15000, }, ); }); @@ -55,7 +55,7 @@ describe('fetch', () => { 'Referer': 'https://some-url.test', }, responseType: 'text', - timeout: 10000, + timeout: 15000, }, ); @@ -70,7 +70,7 @@ describe('fetch', () => { 'Referer': 'https://some-url.test', }, responseType: 'text', - timeout: 10000, + timeout: 15000, }, ); }); -- 2.45.2