In volley library giving com.android.volley.ServerError

后端 未结 6 1673
死守一世寂寞
死守一世寂寞 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 06:00

    Response Code 400 means Bad Request.

    Some reasons for that.

    1. There might be issue in Request method. Is it GET or POST.
    2. API might be expecting Authorization Header.

提交回复
热议问题