Socket.io WebSocketWriter.writeClose()给出IllegalArgumentException

时间:2018-09-23 22:39:57

标签: android socket.io okhttp3 okhttp

Crashed: OkHttp http://17.176.117.92:3007/socket.io/?EIO=3&transport=websocket&sid=P5vRfdWExfmHPuAAAV WebSocket
at com.squareup.okhttp.internal.ws.WebSocketWriter.writeClose(WebSocketWriter.java:110)
at com.squareup.okhttp.internal.ws.RealWebSocket.peerClose(RealWebSocket.java:146)
at com.squareup.okhttp.internal.ws.RealWebSocket.access$100(RealWebSocket.java:31)
at com.squareup.okhttp.internal.ws.RealWebSocket$1$2.execute(RealWebSocket.java:74) 
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

-

Fatal Exception: java.lang.IllegalArgumentException: Code required to include reason.
at com.squareup.okhttp.internal.ws.WebSocketWriter.writeClose(WebSocketWriter.java:110)
at com.squareup.okhttp.internal.ws.RealWebSocket.peerClose(RealWebSocket.java:146)
at com.squareup.okhttp.internal.ws.RealWebSocket.access$100(RealWebSocket.java:31)
at com.squareup.okhttp.internal.ws.RealWebSocket$1$2.execute(RealWebSocket.java:74)
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

我只能在架构中看到crashlytics,用户正面临着这种崩溃,但是我不知道为什么会这样,最有可能与webSocket.Writer.writeClose相关。 该如何解决?

0 个答案:

没有答案