Retries after 5 minutes even if it setted to be 20 minutes
Opened this issue · 1 comments
davidkecskemeti commented
I got the following axios-retry configuration
axiosRetry(axios, {
retries: 2,
retryDelay: axiosRetry.exponentialDelay,
shouldResetTimeout: true,
retryCondition: (error) => {
const tryAgain = isNetworkOrIdempotentRequestError(error) || error.code === 'ENOTFOUND';
Logger.info(NAMESPACE, `Error accessing server: "${error.message}". ${tryAgain ? 'Going to try again' : 'Will not try again'}.`);
Logger.info(NAMESPACE, `Full Error: ${error}`);
return tryAgain;
}
});
at the get request
axios
.get(url, {
timeout: 1200000,
headers: { ...this.getHeaders() }
})
It retries after 5 minutes regardless of the configuration, Im seeing that the first process still going on when it fires the second.
Have any of you met with this problem before, am I missing some configuration?
ElmcHostedApplications commented
Yes. I have the problem where everything retries one any request fail