Skip to content

Commit

Permalink
feat: increase tva, eroi and asso timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Nov 5, 2024
1 parent b3f601f commit 81c939f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/api-proxy/association/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const clientAssociation = async (
) => {
const response = await clientAPIProxy<IAssociationResponse>(
routes.proxy.association + rnaOrSiren,
{ timeout: constants.timeout.L, useCache }
{ timeout: constants.timeout.XL, useCache }
);

if (response.identite && Object.keys(response.identite).length === 1) {
Expand Down
2 changes: 1 addition & 1 deletion clients/api-proxy/eori/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { clientAPIProxy } from '../client';
*/
const clientEORI = async (siret: Siret): Promise<IEORIValidation> => {
return await clientAPIProxy<IEORIValidation>(routes.proxy.eori + siret, {
timeout: constants.timeout.XL,
timeout: constants.timeout.XXL,
useCache: true,
});
};
Expand Down
2 changes: 1 addition & 1 deletion clients/api-proxy/tva/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const clientTVA = async (

const data = await clientAPIProxy<IVIESResponse>(url, {
useCache,
timeout: constants.timeout.XL,
timeout: constants.timeout.XXL,
});

if (data.userError && ['VALID', 'INVALID'].indexOf(data.userError) === -1) {
Expand Down

0 comments on commit 81c939f

Please sign in to comment.