Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retries after 5 minutes even if it setted to be 20 minutes #219

Open
davidkecskemeti opened this issue Dec 15, 2022 · 1 comment
Open

Retries after 5 minutes even if it setted to be 20 minutes #219

davidkecskemeti opened this issue Dec 15, 2022 · 1 comment

Comments

@davidkecskemeti
Copy link

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
Copy link

Yes. I have the problem where everything retries one any request fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants