Add timeoutMs to webhooks calls (#15012)
5 second timeout tested with an application serverlessFunction that delays
This commit is contained in:
@@ -74,7 +74,10 @@ export class CallWebhookJob {
|
||||
const response = await this.httpService.axiosRef.post(
|
||||
getAbsoluteUrl(data.targetUrl),
|
||||
payloadWithoutSecret,
|
||||
{ headers },
|
||||
{
|
||||
headers,
|
||||
timeout: 5_000,
|
||||
},
|
||||
);
|
||||
|
||||
const success = response.status >= 200 && response.status < 300;
|
||||
|
||||
Reference in New Issue
Block a user