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

error:websocket: bad handshake #4

Open
jcarm010 opened this issue May 18, 2016 · 0 comments
Open

error:websocket: bad handshake #4

jcarm010 opened this issue May 18, 2016 · 0 comments

Comments

@jcarm010
Copy link

Having this issue in a machine with OSX 10.10.5 and the app was compiled in OSX 10.11.5.
It is working correctly on other machines with OSX 10.9.5, 10.10.3, 10.10.5, 10.11.4, 10.11.5

from github.com/zhouhui8915/engine.io-go/websocket/client.go, func NewClient, "resp" is:
&{Status:400 Bad Request StatusCode:400 Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[X-Cache-Lookup:[MISS from m8815449E1B30:3128] Via:[1.1 m8815449E1B30 (squid/3.3.5)] Server:[nginx/1.8.0] Date:[Wed, 18 May 2016 13:49:09 GMT] Content-Type:[application/json] Access-Control-Allow-Origin:[*] X-Cache:[MISS from m8815449E1B30]] Body:{Reader:0xc82087d500} ContentLength:-1 TransferEncoding:[] Close:true Trailer:map[] Request:0xc820668c40 TLS:}

from github.com/zhouhui8915/engine.io-go/websocket/client.go, function NewClient, "err" is:
websocket: bad handshake

here is the content of resp.Body:
{"code":3,"message":"Bad request"}

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