I am getting this error in dio library while calling local API
Flutter: DioError [DioErrorType.DEFAULT]: RangeError (index): Invalid value: Only valid value is 0:
Causing issue:-
My base url is without http:// or https// causing the issue 10.0.2.2:4003/api/v1/
Worked for me :-
I only added http:// in URL http://10.0.2.2:4003/api/v1/
you can use https// instead of http//
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With