-
Notifications
You must be signed in to change notification settings - Fork 37
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
Retry callback bug #4
Comments
Thank you, I will fix that. :) |
You are welcome and thank you for a useful module! |
Sorry but when you release this fix on Pub? |
var shouldRetry = extra.retries > 0 && await options.retryEvaluator(err); where to change this |
i have tried but the function api is nhi been |
on 404 it only retries only once |
From conversation in aloisdeniel#4
I fixed this in my branch by manually applying the PR. Here's how to use it in your project. You can use my patched version by adding this to your pubspec.yaml instead of the existing
|
I also removed the dependency on EDIT: I bit the bullet and published it to pub dev, you can grab it here if you want: https://pub.dev/packages/dio_retry_fixed |
@aloisdeniel any idea when you can get this fixed? Would be awesome to have it on prod |
Hello! I found a bug with a retry callback. The module do only one call of given callback, after that it uses a default callback.
Here is a bugged code:
var shouldRetry = extra.retries > 0 && await extra.retryEvaluator(err);
to fix it we just have to change
extra
tooptions
:var shouldRetry = extra.retries > 0 && await options.retryEvaluator(err);
The text was updated successfully, but these errors were encountered: