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

clock demo fails: Error during WebSocket handshake #15

Open
ijt opened this issue Feb 7, 2015 · 0 comments
Open

clock demo fails: Error during WebSocket handshake #15

ijt opened this issue Feb 7, 2015 · 0 comments

Comments

@ijt
Copy link

ijt commented Feb 7, 2015

All of the demos fail on my laptop, probably for the same reason. Here's the error that comes up in the console:

WebSocket connection to 'ws://localhost:1456/websocket/clock1' failed: Error during WebSocket handshake: Unexpected response code: 400

This is on Chrome version 40.0.2214.94 (64-bit).

No error comes up on the server side:

ezwebframe:handle "/clocks/clock1.html"
ezwebframe_demos::dispatch /clocks/clock1.html => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.html
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.html"
ezwebframe:handle "/common/jquery-1.7.1.min.js"
ezwebframe:handle "/ezwebframe/websock.js"
ezwebframe_demos::dispatch /common/jquery-1.7.1.min.js => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/common/jquery-1.7.1.min.js
ezwebframe_demos::dispatch /ezwebframe/websock.js => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/../priv/websock.js
ezwebframe:handle "/clocks/clock1.css"
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/common/jquery-1.7.1.min.js"
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/../priv/websock.js"
ezwebframe_demos::dispatch /clocks/clock1.css => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.css
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.css"

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