How to use handler.reject in onError of QueuedInterceptor #2093
jackie-weiwei
started this conversation in
General
Replies: 2 comments 3 replies
-
@AlexV525 can you help me please |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://pub.dev/documentation/dio/latest/dio/ResponseInterceptorHandler/reject.html As the doc mentioned, the method will reject the response with an error. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Request Statement
flutter version: 3.10.4
dio version : 5.4.0
When I call handler.reject(DioException(requestOptions: options)) in onError, The caller displays the following error:
I don't understand now why the caller reports an error after rejecting. How should I use reject? Please help. Thank you.
my code like this:
interceptor code like this:
Solution Brainstorm
No response
Beta Was this translation helpful? Give feedback.
All reactions