cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

{errorCode: USRAUT0010, error: Mobile is Required} #515

Closed sidB67 closed 3 years ago

sidB67 commented 3 years ago

I am getting this error while posting in dart. The code is below () async {

           var response = await http.post(url,body: json.encode({
            "mobile":'8130664467'
           }
           ) );

            print(jsonDecode(response.body));
          },
big89 commented 3 years ago

To understand better, provide sufficient information like which API you are using and exact error/response you are getting.

Thanks, Logicmaker

vinfur commented 3 years ago

I am getting this error while posting in dart. The code is below () async {

           var response = await http.post(url,body: json.encode({
            "mobile":'8130664467'
           }
           ) );

            print(jsonDecode(response.body));
          },

You Have To Use "Post" Request along with content type header and Accept header Both Should be Application/json