mrniko/netty-socketio

io.netty.handler.codec.http.TooLongHttpLineException: An HTTP line is larger than 4096 bytes.

Closed this issue · 0 comments

When we send a bearer token, the netty server does not accept the request due to its length.

Request: ws://localhost:4200/socket.io/?token=Bearer%20eyJhbGciOiJSUzI1NiIsImtpZCI6IjRk...OMnZibQBYwQFG5fxh5PROg&EIO=3&transport=websocket

version: 2.0.6

Error:
[ntLoopGroup-3-3] c.c.socketio.handler.WrongUrlHandler : Blocked wrong socket.io-context request! url: /bad-request, params: {}

image