-
-
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
onError not working in dio interceptor #2108
Comments
@zubair999 try to add super.onError(err, handler) |
I already tried it but it 's not working. I try print in onError code block but request never there, and if reload the app then it print. |
Your reproducible code is not minimal, which means hard for us to reproduce the case easily. Please consider setting breakpoints and running the app with the debugger to see it it actually works. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Please attach more precise details so we can take further investigations. Thanks. |
@AlexV525
I am working with the latest version of the package |
Package
dio
Version
5.3.3
Operating-System
Android, Windows
Output of
flutter doctor -v
Dart Version
3.2.0
Steps to Reproduce
Expected Result
on error should run and refreshed token should work,
even if i try to print in on error nothing is printing in the console so that I come to know onError working or not
Actual Result
On error is not working as soon as request fail and 401 returned I got into dio exeptions in dio mixins
The text was updated successfully, but these errors were encountered: