-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Client handshake returns error message "Transport unknown" #1577
Comments
This is a problem for me as well. I can't run benchmarks for testing the Socket.io performance on my server due to this error. I see this is not a local error seeing that the demo chat application on the Socket.io homepage has the same issue. http://chat.socket.io/socket.io/1 returns the exact same response. |
It's due to the version of |
+1 |
Make sur that the client and server libs are 1.0.x |
I'm not using the javascript client but a custom PHP client. So it needs to handle the handshake. I'll wait to get some documentation about it or might have a look, if I have time, how the javascript client is actually performing the handshake. |
I experience the same issue when I manually send the handshake request. |
Some more documentation on how to accomplish a handshake with 1.0.x would be very helpful. I'm receiving the same error. I can't find any of the query params on the server side that I applied using var socket = io("http://localhost:8080", {query:{bla:"bla"}); or var socket = io("http://localhost:8080", {query:"bla=bla"}); |
Same problem here using a C++ library.
It returns:
What have changed? |
no documents in this update! |
I don't know if that would help:
On 0.9.4:
On 1.0.4:
|
i testing with chat example source. first. get sid
second. request same url with sid, again, handshake is done
third. connect to websocket, but i can't succeed.. socket.io not responses heartbeat.
|
I tried here is the output on 1.0.4: First GET:
Second Query with the sid:
|
same error |
same error here ! |
same for me |
Hey, this might help, you can set the response to return plain text by setting b64=true in the request. (you also need to set the transport in the request) For example: This returns (content-type:text/plain) Also, the packet returned seems to have the following format: In the above example Hope it helps, but you should know I'm new to socket.io so there may be other adjustments you need to make that I'm not aware of. |
same error here ! |
+1 :( |
Same here, I'm using socket.io v1.0.6 on both client and server.. |
I've encountered same error on socket.io v1.1.0. I added a follow line at server side script, then I fixed this problem. Errors I encountered:
I refer http://stackoverflow.com/questions/23962047/socket-io-v1-0-x-unknown-transport-polling |
We'll definitely work on adding more documentation about the handshake to socket.io-protocol, where I feel like this issue belongs. |
Closing this in favor of socketio/socket.io-protocol#10. If this issue occurs when using socket.io (not a custom implementation) what @coulix said is likely the fix: make sure that the client and server are of the same version. Please do open another issue about it if this doesn't help. :) |
|
I actually got through the first 2 completing the handshake, and the on connection emit actually fires and I pick it up in the serial monitor of my Arduino, but the third connection upgrade request I get bad request. So frustrating. |
when i try open socket my getting error message is |
since im also facing this , i guess its not fixed uptill now . im using "socket.io": "^1.4.5", |
For Those still looking for an answer for here: |
@rosarionakkocom That didn't help. |
Just hit this as well. Trying various options. Am just lying to test out a server I've built and using PAW as a client. |
I fixed this problem by adding this setting to my socket.io server:
read more here: http://stackoverflow.com/a/24244413/375966 |
@afshinm please note that, as documented there, the order in
|
@afshinm Thanks, it works |
Please note that since socket.io version 1.x, the only valid values for
All the other values in @afshinm 's answer won't be used (in fact, only websocket transport will be used in that case). |
it works !!!, my client side is using a lib call elephant.io, and it is using verison of 1.0.0, but my socket.io is using 4.0.0, so i install the socket version 1.0.6 (as i see in the terminal) and the problem is fixed even though i dont know why |
I was trying to initialize a handshake, following the specs I've found at LearnBoost/socket.io-spec. Sometime I found that it has to be done with a
POST
request, sometime withGET
. I've tried both of them and they both returned the same error:The text was updated successfully, but these errors were encountered: