netty-socketio
netty-socketio copied to clipboard
PacketType.valueOf throws IllegalStateException
Hi,
I'm using socket.io server 1.7.17. I'm connecting to a namespace /profile-0 from Chrome using
"socket.io-client": "2.0.3"
Client connects normally. When he sends first message to login I see on server this error:
2019-09-06 10:28:47,673 [nioEventLoopGroup-3-1] [ERROR] [c.c.s.handler.InPacketHandler] - Error during data processing. Client sessionId: e79dfa62-a088-4e52-b019-0612656df755, data: java.lang.IllegalStateException: null at com.corundumstudio.socketio.protocol.PacketType.valueOf(PacketType.java:48) at com.corundumstudio.socketio.protocol.PacketDecoder.readType(PacketDecoder.java:86) at com.corundumstudio.socketio.protocol.PacketDecoder.decode(PacketDecoder.java:160) at com.corundumstudio.socketio.protocol.PacketDecoder.decodePackets(PacketDecoder.java:142) at com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:65) at com.corundumstudio.socketio.handler.InPacketHandler.channelRead0(InPacketHandler.java:36) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java
I see PacketType supported are ` OPEN(0), CLOSE(1), PING(2), PONG(3), MESSAGE(4), UPGRADE(5), NOOP(6),
CONNECT(0, true), DISCONNECT(1, true), EVENT(2, true), ACK(3, true), ERROR(4, true), BINARY_EVENT(5, true), BINARY_ACK(6, true);`
But type received is 12. https://i.imgur.com/Q08Vrbn.png
Here is whole msg flow: https://i.imgur.com/Dfc99YX.png
@MatCuk , I am facing the same issue. I receive packet type 12 from Android client. Did you find anything useful? Do you know what does packet type 12 means?
I am facing the same issue, when trying to connect to a particular namespace. But the connection is successful even after the exception occurs.
me to, I get packet type 15, why?
I get same number 12