Flutter: DioError [DioErrorType.DEFAULT]: RangeError (index): Invalid value: Only valid value is 0:
3,235
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//
Author by
Ankit Mahadik
I want to work like Developer and i Enjoy it Right Now..!! Always Curious to do something new or weird.. Things Abt me :- #PaSs!onate CaNdid PhoTogRaphEr Happy to Help #Trustworthy #REsponsible #Carrying #LeadErship #Curious " Th!nk Big Or Think Weird " - #deV
Updated on December 29, 2022Comments
-
Ankit Mahadik over 1 year
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: