javascriptjavatomcatwebsocketjsr356

"Failed to decompress a compressed WebSocket frame" error in Tomcat WebSocket


I have a JavaScript WebSocket client and Tomcat WebSocket server (JSR 356). Whenever I try sending text data to the server from the JS client, I'm receiving the following error

Failed to decompress a compressed WebSocket frame

The WebSocket session was closed with the CloseCode 1002. This issue occurs only in specific machine (JS ClientEndpoint). Moreover when this error is encountered, the text messages that I sent from ClientEndpoint were received incorrectly by ServerEndpoint

I tried searching for a solution to this issue in the internet. But nothing is relevant. Does anyone have a solution for this ?


Solution

  • We found out that FortiClient's antivirus application that is running in the client machine is the reason behind this issue. Once we disabled this antivirus application, the issue seems to be resolved.

    I still don't know how it happened. It needs to be analyzed. Meanwhile any relevant information regarding this issue appreciated.