Cometchat, getting volley Library error com.android.volley.ServerError 206 while trying to login

243 Views Asked by At

As I am able to create new user from same url but unable to Login in cometchat

   cometchat.login(url, "username","password", new Callbacks() 


        @Override
        public void successCallback(JSONObject success) {
            Log.d("Success-->", success + "");
        }


       @Override
       public void failCallback(JSONObject fail) {
       Log.d("Fail Login-->", fail + "");
       //createUser();
      }
      });

Response: { "code": "206", "message": "com.android.volley.ServerError" }

2

There are 2 best solutions below

0
On

It will issue on server side.. so check & test.

0
On

The code reference mentioned in the query for SDK seems of an older version. We can ask to refer to the new SDK version 6.3.2 and create a support ticket if there is an issue on/for this. In the New SDK function name is "loginCallbacks"