D
D
Dmitry Tarasov2019-11-06 20:55:08
Node.js
Dmitry Tarasov, 2019-11-06 20:55:08

How to remove socket connection error Error during WebSocket handshake: Unexpected response code: 400?

Hello!
Gives this error when trying to connect via socket connection

socket.io-2.0.1.js:2 WebSocket connection to wss failed: Error during WebSocket handshake: Unexpected response code: 400

I have nginx and cloudflare
, google says that only enterprise has a websocket, I looked at all the tariffs there are websockets.
I disable proxying for a while, the error seems to disappear.
It happens that there is no error, that is, when proxying is turned off.
Who will tell you how to fix the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question