chore(fetcher): increase timeout to 15s (#64)

This commit is contained in:
webstreamr 2025-05-20 21:17:31 +02:00 committed by WebStreamr
parent e6980e5676
commit 8daabf1f5a
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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,
},
);
});

View file

@ -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),