Android volley - Unexpected response code 500

unexpected response code 500 com android-volley servererror android
unexpected response code 400 for rest api volley
basicnetwork.performrequest unexpected response code 301 android
basicnetwork.performrequest: unexpected response code 401 for
com android-volley servererror 502
unexpected response code 500 in android studio
unexpected response code 409

I am trying to edit an already registered addresses on my application, but I'm getting this error when I try to do that.

private void callServiceToEditAddress(String flatNo, String apartmentName, String landmark, String pincode) {

    HashMap<String, String> hashMap = new HashMap<>();
    hashMap.put("id", addressID);
    hashMap.put("flat_no", flatNo);
    hashMap.put("apartment_name", apartmentName);
    hashMap.put("lanmark", landmark);
    hashMap.put("pincode", pincode);
    hashMap.put("state", selectedState);
    hashMap.put("city", ID_city);
    hashMap.put("location", ID_locality);
    hashMap.put("country", "2");

    new VolleyHelper(getActivity()).post("editAddress/", hashMap, new Response.Listener<String>() {
        public void onResponse(String response) {
            try {
                JSONObject jsonObject = new JSONObject(response);
                String success = jsonObject.getString("success");
                CroutonUtil.showCroutonMessage(getActivity(), success, CroutonUtil.CROUTON_STYLE_CONFIRM);
            } catch (JSONException e) {

    }, new Response.ErrorListener() {
        public void onErrorResponse(VolleyError error) {

My Log cat:

E/Volley: [365] BasicNetwork.performRequest: Unexpected response code 500 for link I'm using

i solved this by changing the permission for included files in my server side

Unexpected response code 500 for POST method, I am doing an update on the old project & I don't have much knowledge of Android as of now. CommentForUserURL), new JSONObject(params), new Response. Copy code from protected Map<String, String> getParams() before final you are calling and not due to Volley,so check the back-end code. can someone please help regarding 500 response code when Volley sends post request to Heroku #142. Unexpected response code 500 for

I was actually able to solve my problem eventually. What happened is that this web service that I am using "editAddress" also needed another field that I was not providing inside hashMap. I made the changes and it worked fine.

BasicNetwork.performRequest: Unexpected response code 500 , I am developing an android application and using laravel and mysql as the backend. when I post data from postman to mysql through laravel it goes through. A server transiently returning 500s is presumably an issue with the server, or you're doing something like trying more frequently. Perhaps the two versions of Volley handle retries differently.

I just change my url from




Then it works fine for me.

Unexpected response code 500, Hi guys, I am implementing register webservice in my android app URL : https://df​ i  Problem statement: I am trying to access an REST API that will return a JSON object for various HTTP status codes (400, 403, 200 etc) using Volley. For any HTTP status other than 200, it seems the 'Unexpected response code 400' is a problem. Does any

Performrequest: unexpected response code 500, I am trying a String request in volley but I am facing THE ERROR - BasicNetwork.​performRequest: Unexpected response code 500 for api(link). Getting an HTTP response code of 500 means that your app successfully contacted the server, but the server itself has encountered an unexpected error. Contact your backend maintainer to see why the server is misbehaving, this most probably isn't an issue you can fix in your Android code.

Image upload error with code 500 and 503 - Imgur, Performrequest: unexpected response code 500 Android App. I have used this this( to provide the ErrorListener() { @Override public void onErrorResponse(VolleyError error) { pDialog.dismiss();  Volley - BasicNetwork.performRequest: Unexpected response code 400 POST Hot Network Questions After here should I guess or is there a logic solution on Sudoku?

Unexpected response code 500 - Website Building, performRequest: Unexpected response code 500 for E/ImgurUploadTask: Failed to upload image file. json = at  In volley you have separate success and error listeners, handle all the errors in the error listener block. Display a alert or so in which you can show a proper