From 81c939fd9c6c1c2af57aa339ff562a0e7685c884 Mon Sep 17 00:00:00 2001 From: xavier jouppe Date: Tue, 5 Nov 2024 23:48:59 +0100 Subject: [PATCH] feat: increase tva, eroi and asso timeouts --- clients/api-proxy/association/index.ts | 2 +- clients/api-proxy/eori/index.ts | 2 +- clients/api-proxy/tva/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/api-proxy/association/index.ts b/clients/api-proxy/association/index.ts index 4a7e5a9b5..3e92ee894 100644 --- a/clients/api-proxy/association/index.ts +++ b/clients/api-proxy/association/index.ts @@ -20,7 +20,7 @@ const clientAssociation = async ( ) => { const response = await clientAPIProxy( routes.proxy.association + rnaOrSiren, - { timeout: constants.timeout.L, useCache } + { timeout: constants.timeout.XL, useCache } ); if (response.identite && Object.keys(response.identite).length === 1) { diff --git a/clients/api-proxy/eori/index.ts b/clients/api-proxy/eori/index.ts index 85f470f4b..ba0e88565 100644 --- a/clients/api-proxy/eori/index.ts +++ b/clients/api-proxy/eori/index.ts @@ -11,7 +11,7 @@ import { clientAPIProxy } from '../client'; */ const clientEORI = async (siret: Siret): Promise => { return await clientAPIProxy(routes.proxy.eori + siret, { - timeout: constants.timeout.XL, + timeout: constants.timeout.XXL, useCache: true, }); }; diff --git a/clients/api-proxy/tva/index.ts b/clients/api-proxy/tva/index.ts index 7daedb0a6..d56fe9d57 100644 --- a/clients/api-proxy/tva/index.ts +++ b/clients/api-proxy/tva/index.ts @@ -51,7 +51,7 @@ const clientTVA = async ( const data = await clientAPIProxy(url, { useCache, - timeout: constants.timeout.XL, + timeout: constants.timeout.XXL, }); if (data.userError && ['VALID', 'INVALID'].indexOf(data.userError) === -1) {