directus-dart icon indicating copy to clipboard operation
directus-dart copied to clipboard

Not working with Dio 4.0.4

Open awesome-developer-20 opened this issue 3 years ago • 3 comments

Dio client is stuck at sending request when using 4.0.4 version. If I remove first interceptor (DirectusSingleton.instance.client.interceptors.removeAt(0);) it works properly. I don't know why 😕

It is working fine with Dio 4.0.0

Maybe there is a breaking change in Dio interceptor api

awesome-developer-20 avatar Feb 20 '22 16:02 awesome-developer-20

Maybe you have to add return handler.next(options) at the end here

image

Like this

image

awesome-developer-20 avatar Feb 20 '22 16:02 awesome-developer-20

I think you're right. Dio changed their API and I didn't migrate properly in every place. Can you test if it works and send a PR?

apstanisic avatar Feb 27 '22 16:02 apstanisic

I've published 0.7.1. Can you check if it fixes the issue?

apstanisic avatar Mar 16 '22 08:03 apstanisic

Please reopen if issue is not fixed

apstanisic avatar Jan 09 '23 18:01 apstanisic