-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RetryInterceptor's exception cannot be catched by future's catchError #1894
Labels
i: wontfix
This will not be worked on
Comments
allen218
added
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jul 12, 2023
AlexV525
added
h: need more info
Further information is requested
and removed
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Jul 14, 2023
|
Thx! This issue has been resolved. Just call future's then method and handle.resolve() to do that, it works. That last code snippet is blow:
Hope that method can help others meet the same issue. |
AlexV525
added
i: wontfix
This will not be worked on
and removed
h: need more info
Further information is requested
labels
Jul 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package
dio
Version
5.2.0+1
Output of
flutter doctor -v
Dart Version
3.0.2
Steps to Reproduce
Expected Result
it should throw the exception and future's catchError method can catch this when retry count > RETRY_MAX_COUNT.
Actual Result
It throw an unhandled exception below
not catched by future's catchError method. but it can catch the exception when I comment the RetryInterceptor.
The text was updated successfully, but these errors were encountered: