diff --git a/gcf/src/exchange-service.ts b/gcf/src/exchange-service.ts index c2f61192..50387115 100644 --- a/gcf/src/exchange-service.ts +++ b/gcf/src/exchange-service.ts @@ -74,6 +74,7 @@ export async function getRates(ratesEndpointUrl: string, cacheInSeconds: number) method: 'GET', agent: new https.Agent({keepAlive: true}), retryConfig: { + statusCodesToRetry: [[100, 199], [400, 429], [500, 599]], retry: 5, onRetryAttempt: (err: GaxiosError) => {console.log(`${err.message} - Retrying... `)}, retryDelay: 100