""in a response i got Volley Client Error""
function call
public void MS_measurement_Process(Context context,String gender,int height,float weight,String frontimage,String sideimage,final CallBack callBack){
JSONObject jsonObject=new JSONObject();
try{
jsonObject.put("gender",gender);
jsonObject.put("height",height);
jsonObject.put("weight",weight);
jsonObject.put("front_image",frontimage.trim());
jsonObject.put("side_image",sideimage.trim());
}catch(Exception var20){
var20.printStackTrace();
}
if(jsonObject.length()>0){
String api="https://zzzz.xyz.me/api/v2/persons/?measurements_type=all/";
JsonObjectRequest jsonObjReq=new JsonObjectRequest(Request.Method.POST,api,jsonObject,new Response.Listener<JSONObject>(){
public void onResponse(JSONObject response){
callBack.onSuccess(response.toString());
}
},new Response.ErrorListener(){
public void onErrorResponse(VolleyError error){
callBack.onError(error);
}
}){
@Override
public Map<String, String> getHeaders()throws AuthFailureError{
HashMap<String, String> headers=new HashMap();
headers.put("Content-Type","application/json");
headers.put("Authorization","APIKey 47362472638748432674832432864327");
return headers;}};
jsonObjReq.setRetryPolicy(new DefaultRetryPolicy(300000,0,1.0F));
Volley.newRequestQueue(context).add(jsonObjReq);}
Source: Android Questions