Created
January 10, 2015 23:07
-
-
Save nickgartmann/6cdeb734fb58e1d41c2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17:06:25.586 [error] #PID<0.258.0> running Spacegame.Endpoint terminated | |
Server: localhost:4000 (http) | |
Request: GET /ws | |
** (exit) an exception was raised: | |
** (ErlangError) erlang error: [reason: %Protocol.UndefinedError{description: nil, protocol: String.Chars, value: %{"thin" => "one"}}, mfa: {Phoenix.Endpoint.CowboyHandler, :websocket_handle, 3}, stacktrace: [{String.Chars, :impl_for!, 1, [file: 'lib/string/chars.ex', line: 3]}, {String.Chars, :to_string, 1, [file: 'lib/string/chars.ex', line: 17]}, {Logger, :truncate, 2, [file: 'lib/logger.ex', line: 492]}, {Logger, :log, 3, [file: 'lib/logger.ex', line: 404]}, {Spacegame.GameChannel, :event, 3, [file: 'web/channels/game.ex', line: 44]}, {Phoenix.Channel.Transport, :dispatch, 4, [file: 'lib/phoenix/channel/transport.ex', line: 102]}, {Phoenix.Channel.Transport, :dispatch, 4, [file: 'lib/phoenix/channel/transport.ex', line: 67]}, {Phoenix.Transports.WebSocket, :ws_handle, 2, [file: 'lib/phoenix/transports/websocket.ex', line: 45]}], msg: {:text, "{\"channel\":\"game\",\"topic\":\"a0cd5218-0107-4723-9d3a-b5ddcdfe1054\",\"event\":\"ship:target\",\"message\":{\"thin\":\"one\"}}"}, req: [socket: #Port<0.6123>, transport: :ranch_tcp, connection: :keepalive, pid: #PID<0.258.0>, method: "GET", version: :"HTTP/1.1", peer: {{127, 0, 0, 1}, 52183}, host: "localhost", host_info: :undefined, port: 4000, path: "/ws", path_info: :undefined, qs: "", qs_vals: :undefined, bindings: [], headers: [{"host", "localhost:4000"}, {"connection", "Upgrade"}, {"pragma", "no-cache"}, {"cache-control", "no-cache"}, {"upgrade", "websocket"}, {"origin", "null"}, {"sec-websocket-version", "13"}, {"user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"}, {"accept-encoding", "gzip, deflate, sdch"}, {"accept-language", "en-US,en;q=0.8"}, {"sec-websocket-key", "eMVDfeJ8DlU3n6KzLXxm3Q=="}, {"sec-websocket-extensions", "permessage-deflate; client_max_window_bits"}], p_headers: [{"sec-websocket-extensions", [{"permessage-deflate", ["client_max_window_bits"]}]}, {"upgrade", ["websocket"]}, {"connection", ["upgrade"]}], cookies: :undefined, meta: [websocket_version: 13, websocket_compress: false], body_state: :waiting, buffer: "", multipart: :undefined, resp_compress: false, resp_state: :done, resp_headers: [], resp_body: "", onresponse: :undefined], state: {Phoenix.Transports.WebSocket, %{router: Spacegame.Router, serializer: Phoenix.Transports.JSONSerializer, sockets: #HashDict<[{{"game", "a0cd5218-0107-4723-9d3a-b5ddcdfe1054"}, %Phoenix.Socket{assigns: %{}, authorized: true, channel: "game", conn: nil, pid: #PID<0.258.0>, router: Spacegame.Router, topic: "a0cd5218-0107-4723-9d3a-b5ddcdfe1054"}}, {{"game", "lobby"}, %Phoenix.Socket{assigns: %{}, authorized: false, channel: "game", conn: nil, pid: #PID<0.258.0>, router: Spacegame.Router, topic: "lobby"}}]>}}] | |
(phoenix) lib/phoenix/endpoint/cowboy_handler.ex:17: Phoenix.Endpoint.CowboyHandler.upgrade/4 | |
(cowboy) src/cowboy_protocol.erl:435: :cowboy_protocol.execute/4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment