Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] What does 'bad handshake method' mean? #2723

Closed
richb-hanover opened this issue Oct 17, 2016 · 1 comment
Closed

[Docs] What does 'bad handshake method' mean? #2723

richb-hanover opened this issue Oct 17, 2016 · 1 comment

Comments

@richb-hanover
Copy link

My client's POST request gets back a 400 status, with a response of {"code":2,"message":"Bad handshake method"}. The socket.io connection doesn't get established, and the client never gets any messages from the server. (For more detail, see: #2717)

What does this error response mean? How would I make this happen, if I wanted it to happen?

@richb-hanover
Copy link
Author

Update: apparently, (at least one) cause of the 'bad handshake method' is that a POST request arrives without a sid=... parameter in the URL.

In my case, Firefox was not requesting 'Accept: "/"' header, which caused a whole house of cards to fall down. There has been a PR to force that header, and it should be wending its way into the code base. See the discussion in #2717 for way more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant