In volley library giving com.android.volley.ServerError

后端 未结 6 1503
死守一世寂寞
死守一世寂寞 2021-02-09 05:30

I try to login in my application, when I try to call API using volley library, it\'s giving com.android.volley.ServerError and response code 400.

final String u         


        
6条回答
  •  醉酒成梦
    2021-02-09 05:57

    In below method

    public void onErrorResponse(VolleyError error)
    

    add this line:-

    error.printStackTrace()
    

    You will get all stack trace which gives you the actual error. I have also get this error but in my case it is actually TimeoutException.

提交回复
热议问题