Ratchet: WebSocket connection to 'ws://localhost:1337/' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1

Created on 5 May 2016  路  22Comments  路  Source: ratchetphp/Ratchet

What about this?
Everything worked and it suddenly appeared as error?

Most helpful comment

All 22 comments

Are you on windows?

That is a protocol error. It most likely means the client attempting to connect did something it wasn't supposed to be doing.

Yes I am on Windows. The problem is in Chrome and FF. But on the another win 7 laptop sockets are working normaly. What is the issue here and is there anything to do in order to solve? I also tried with disabling antivirus but it did not help.

@cboden who is doing that and what is not supposed to be done?

I am not involved in Ratchet at all but we have started seeing some websocket issues on windows in the past couple of days. We use Socket.io on node so very different tech stack.

Ok, but how did you fix this issue? Is this some general problem with windows or maybe with latests updates in chrome and FF?

Can anyone assists me with this? I am using Autobahn|JS, on android everything is working as it should be. What can be the cause? I do not know is the problem on back-end of php ratchet or in JS or maybe something else? I am using push integration.

I'm facing exactly the same problem using Ratchet/Autobahn.js through the gos/web-socket-bundle, I tested my project on more than 10 workstations with Windows and the problem occured on three of them, in all of main browsers (Opera, Chrome, FF, IE) in these cases. I don't see the problem on Ubuntu machines too. It's really hard to guess how to fix it, so thanks for any help to resolve this weird issue.

This error is also in official demo page. https://monosnap.com/file/GDN0cLOVTjT0EJVDNlBOyP8dPTpk6E

This URL is broken :(

Sorry. New screenshot http://take.ms/LaKmJ

I can see now thanks, but as I can see there is still no patch for this :(

I'm have issues with WebSocket last days too. And try find resolve

Another site, another tech, but similar problem http://take.ms/QOVFl

I have idea. I seen trouble with protocol ws:// but protocol wss:// work correct. For example http://websocketstest.com/

I have the same problem with wss:// protocol too.

So, all this is due to ESET NOD32 Antivirus recent update?

If NOD32 is installing on your computer yes. It's works for me.
Is it working for you ?

Yes, I have NOD32.
I added IP addresses in exclude list and it works.

I did the same !
Hope the next update of NOD32 will fixe this ...

I resolved the trouble with WebSockets. Use wss:// instead ws:// and proxy through nginx ssl.
Users will not be waiting for update antivirus. My application must work.

Hi, recently I ran into the same issue in a custom socket server that I wrote in PHP.

I was masking the data to be broadcasted wrong.
The PHP terminal output is where you wanna look if you are doing something similar.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Opice picture Opice  路  4Comments

piotrchludzinski picture piotrchludzinski  路  5Comments

ThePatzen picture ThePatzen  路  3Comments

elovin picture elovin  路  3Comments

Lugia101101 picture Lugia101101  路  7Comments