You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I connecting to socket via Wi-Fi all works fine. But when I trying to connect via Mobile Internet the error occurs
mSocket.on(Socket.EVENT_CONNECT_ERROR, new Emitter.Listener() {
@Override
public void call(Object... args) {
if (args.length> 0 && args[0] instanceof EngineIOException){
((EngineIOException)args[0]).printStackTrace();
}
}
});
Packet data: parser error
EngineIOException:
io.socket.engineio.client.EngineIOException: server error
at io.socket.engineio.client.Socket.onPacket(Socket.java:547)
at io.socket.engineio.client.Socket.access$1000(Socket.java:36)
at io.socket.engineio.client.Socket$5.call(Socket.java:335)
at io.socket.emitter.Emitter.emit(Emitter.java:117)
at io.socket.engineio.client.Transport.onPacket(Transport.java:126)
at io.socket.engineio.client.transports.Polling.access$700(Polling.java:18)
at io.socket.engineio.client.transports.Polling$2.call(Polling.java:127)
at io.socket.engineio.parser.Parser.decodePayload(Parser.java:222)
at io.socket.engineio.client.transports.Polling._onData(Polling.java:135)
at io.socket.engineio.client.transports.Polling.onData(Polling.java:102)
at io.socket.engineio.client.transports.PollingXHR$5$1.run(PollingXHR.java:125)
at io.socket.thread.EventThread$2.run(EventThread.java:80)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Why polling got data as xml on Mobile Internet? And Content-Type: text/vnd.wap.wm?
neio.client.transports.Polling: polling got data <?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="FEHLER" title="ERROR">
<p>
The requested item could not be loaded <br/>
Wrong MIME-Type
<do type="prev" label="back">
<prev/>
</do>
</p>
</card>
</wml>
Device: Android 9.0, Google Pixel 2 XL
When I connecting to socket via Wi-Fi all works fine. But when I trying to connect via Mobile Internet the error occurs
Packet data:
parser error
EngineIOException:
Why polling got data as xml on Mobile Internet? And
Content-Type: text/vnd.wap.wm
?Here is log from logger:
The text was updated successfully, but these errors were encountered: