•   about 6 years ago

Sign Up Problems

Hello

I had problems signing up users on Android M and the error was caused due to getDeviceId() tracebacked from MMX.init() which needs the phone state permission. If anyone else has this problem on Android M, I fixed this by asking the permission from the user for READ_PHONE_STATE.

Now I am getting a new error during Sign Up on both Lollipop (Genymotion) and also my Nexus 6 running Marshmallow. (I am currently using the Sandbox)

Logcat:

10-23 15:23:01.594 16301-16301/com.sau.classboard I/MMX: MMX[main]: App=com.sau.classboard, MMX SDK=1.9.1, protocol=1.6
10-23 15:23:16.708 16301-16605/com.sau.classboard W/System.err: java.net.SocketTimeoutException: failed to connect to prod-mmx-001.magnet.com/54.218.32.78 (port 5221) after 15000ms
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:169)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:452)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at java.net.Socket.connect(Socket.java:884)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:117)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.http.SocketConnector.connectRawSocket(SocketConnector.java:160)
10-23 15:23:16.716 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.http.SocketConnector.connectTls(SocketConnector.java:79)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.Connection.connect(Connection.java:143)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:185)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:128)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:341)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:114)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:245)
10-23 15:23:16.717 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at com.magnet.mmx.client.api.MMXUser$1.doRun(MMXUser.java:277)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at com.magnet.mmx.client.api.MMXUser$1.doRun(MMXUser.java:229)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at com.magnet.mmx.client.MMXTask.run(MMXTask.java:154)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at android.os.Handler.handleCallback(Handler.java:739)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at android.os.Looper.loop(Looper.java:148)
10-23 15:23:16.718 16301-16605/com.sau.classboard W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)

  • 1 comment

  •   •   about 6 years ago

    Sorry, the issue was resolved when I switched to data from my school's WiFi.
    Seems like my school is blocking the URL for some reason.

Comments are closed.