TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP\/1.1 426 #216

Open smallmouse2009 opened 3 years ago

smallmouse2009 commented 3 years ago

The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP\/1.1 426

2.6 version, I don't know how to sovle this issuse, it occurs sometimes

daluu commented 3 years ago

How often does this happen when you keep trying to connect/reconnect? And how reproducible is it?

ndvbd commented 3 years ago

@smallmouse2009 are you using CloudFlare?

ndvbd commented 1 year ago

Anyone? I have the same issue on Android. When restarting the application manually, only then it works. Is there some state to the WebSocketFactory that we can reset every time? This is very strange.