I am getting this error quit often.
What is the root cause for this?
Error : ‘Server did not report any SASL mechanisms’
I am trying to login to a chat but sometimes I get this error. The login credentials are fine, that was the first thing I checked. I get this error not all the time (for the same user), sometime the login succeeds but sometime I get this error (without changing the credentials). What should be the second thing I need to check?
Features/SASL mechanisms are some times inside the initial payload from server but some times not. ConnectionListener also calls connected() too early (for login).
If this solves an issue for you, then you probably did not follow the instructions of Smack’s README. Especially the part that you should either declare a dependency to smack-android or smack-java7 (depending on your target platform).