i am trying to create a user login page, i am getting this error while i try to register.I guess there is a problem with the Json object part.I tried searching for other answers
myReq.setRetryPolicy(new DefaultRetryPolicy(10000, 0, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
Add this line before addidng your request in volley.
This is the minimum number of retries. Default is 1, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT
.
add header Content-Type - text/html. I tried to call your api from postman rest client without headers it will give error 500 after adding header to api got result 200 status ok