directus-dart
directus-dart copied to clipboard
Not working with Dio 4.0.4
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
Maybe you have to add return handler.next(options)
at the end here
Like this
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?
I've published 0.7.1. Can you check if it fixes the issue?
Please reopen if issue is not fixed