Closed fischermario closed 5 months ago
I don't use QueuedInterceptor
because of concurrency concern. There's no need to stream each request because of this package.
That said, dio should follow interceptor chain setup...
Edit: Meant to post in the dio issue.
The onError handler of DioCacheInterceptor is not able to hand over error handling to the next interceptor in the pipeline. After the onError handler is finished an exception occurs that is not cought by the subsequent interceptor(s).
Please consider the following example:
Changing this line to
fixes this problem (I can create a PR if interested).
I have also informed the Dio project about this behavior here.
Is there a particular reason why you chose to extend "Interceptor" instead of "QueuedInterceptor"?