-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added retry on chunk download on any error #179
Conversation
If these changes look good, signoff on them with:
If they aren't any good, please remove them with:
|
Signed-off-by: Daniel Ricaud <dricaud@virtru.com>
9020900
to
c8b8e11
Compare
axiosRetry(axios, { | ||
retries: 3, | ||
retryDelay: axiosRetry.exponentialDelay, | ||
retryCondition: () => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't want to retry on every failure. Do you know what the default condition is?
Also, does this affect all global axios requests? We might want to start using axios.create
to allow more fine-grained control - and avoid accidentally altering behavior outside of what we intend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it looks like you can set these parameters on a given request (at least, if paired with axios.create, although IDK if that is required or just in the example code), so we maybe want to be more selective about this specific change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos, SonarCloud Quality Gate passed!
|
No description provided.