•   about 6 years ago

Login attempt - Service Unavailable.

Why would one get a login failure with 11 - Service Unavailable, when other devices are allowing login to the same service on the Sandbox?
Seems like if there is a server problem it would affect clients equally.

Is there a common programming error, or something weird in Android 6.0, that would cause this?

  • 5 comments

  •   •   about 6 years ago

    Hi Nathan,

    Thanks for posting.

    As you mentioned, a server issue would most likely cause issues for all clients so it is unlikely. We have also been running several of our test apps on a Nexus 5 with Android 6.0 against the sandbox without any issues so it is probably not a specific issue with Android 6.0. One possibility is some type of permission error that is preventing the app from getting network access on the Android 6.0 device (and its new permission model). Would it be possible for you to grab the logcat output during the issue? There is probably an exception stacktrace that could help with figuring out this issue.

    Thanks

  •   •   about 6 years ago

    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: MMX[MMXHandlerThread-__DEFAULT__]: ConnectionRunnable: Connection failed. Exception caught.
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: com.magnet.mmx.client.common.MMXException
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at com.magnet.mmx.client.common.MMXConnection.connect(MMXConnection.java:376)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at com.magnet.mmx.client.MMXClient$3.run(MMXClient.java:780)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Handler.handleCallback(Handler.java:739)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Handler.dispatchMessage(Handler.java:95)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Looper.loop(Looper.java:148)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.HandlerThread.run(HandlerThread.java:61)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: Caused by: org.jivesoftware.smack.SmackException$NoResponseException
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.XMPPConnection.throwConnectionExceptionOrNoResponse(XMPPConnection.java:559)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwConnectionExceptionOrNoResponse(XMPPTCPConnection.java:879)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.tcp.PacketReader.startup(PacketReader.java:113)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.java:482)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:440)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:407)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at com.magnet.mmx.client.common.MMXConnection.connect(MMXConnection.java:371)
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at com.magnet.mmx.client.MMXClient$3.run(MMXClient.java:780) 
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Handler.handleCallback(Handler.java:739) 
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Handler.dispatchMessage(Handler.java:95) 
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.Looper.loop(Looper.java:148) 
    10-21 08:19:57.748 31777-31793/com.crittermap.... E/MMXClient: at android.os.HandlerThread.run(HandlerThread.java:61) 

  •   •   about 6 years ago

    Hi Nathan,

    This appears to be a connectivity issue of some sort. For the sandbox environment, the Magnet Message SDK attempts to connect to the sandbox server on TCP port 5222 (and 5221 for user registration). You mentioned that your other devices are able to connect.

    1. Are the other devices on the same network and using the same binary APK?

    2. Can you also provide the device information for the device that is experiencing this issue? i.e. mfg/model/software version.

    3. Network details? Is this on wifi or mobile data?

    4. If possible, enable verbose SDK logging to get more detailed information on what might be happening. To do this, add this line somewhere before your MMX.login() call: "com.magnet.mmx.client.common.Log.setLoggable(null, Log.VERBOSE);"

    Thanks

  •   •   about 6 years ago

    1. Yes
    2. Model Nexus 9
    A Galaxy Note3 experienced the problem in a different place.
    3. On a home wifi network as the tablet is wifi only.
    Switching from one router to another made a difference, but it later worked on both.
    It is not consistent.
    It did happen outside with Galaxy Note3 that I could not log on once I got out of range of wifi and onto 3G. I would have a difficult time getting a log from this.

    4. Will try but have not encountered it since upgrading the logging.
    4.

  •   •   about 6 years ago

    We will try it on a Nexus 9 to see if we can reproduce this issue as well. It sounds like you are able to connect. Please let us know if you run into this issue again.

    Thanks

Comments are closed.