{"action":"opened","issue":{"url":"https://api.github.com/repos/chrismccord/phoenix_chat_example/issues/50","repository_url":"https://api.github.com/repos/chrismccord/phoenix_chat_example","labels_url":"https://api.github.com/repos/chrismccord/phoenix_chat_example/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/chrismccord/phoenix_chat_example/issues/50/comments","events_url":"https://api.github.com/repos/chrismccord/phoenix_chat_example/issues/50/events","html_url":"https://github.com/chrismccord/phoenix_chat_example/issues/50","id":331795614,"node_id":"MDU6SXNzdWUzMzE3OTU2MTQ=","number":50,"title":"Phoenix 1.4 (master) and Jason gives (ArgumentError) argument error Chat.Endpoint.HTTP (cowboy_protocol) terminated on REMOTE connection ONLY !?","user":{"login":"niccolox","id":453798,"node_id":"MDQ6VXNlcjQ1Mzc5OA==","avatar_url":"https://avatars2.githubusercontent.com/u/453798?v=4","gravatar_id":"","url":"https://api.github.com/users/niccolox","html_url":"https://github.com/niccolox","followers_url":"https://api.github.com/users/niccolox/followers","following_url":"https://api.github.com/users/niccolox/following{/other_user}","gists_url":"https://api.github.com/users/niccolox/gists{/gist_id}","starred_url":"https://api.github.com/users/niccolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niccolox/subscriptions","organizations_url":"https://api.github.com/users/niccolox/orgs","repos_url":"https://api.github.com/users/niccolox/repos","events_url":"https://api.github.com/users/niccolox/events{/privacy}","received_events_url":"https://api.github.com/users/niccolox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T00:05:39Z","updated_at":"2018-06-13T00:05:39Z","closed_at":null,"author_association":"NONE","body":"I found this bug/error/issue on another project which I am trying to upgrade to Phoenix 1.4 (master actually) and Jason. \r\n\r\nI managed to replicate it I think, using a fork of this project and I would be curious on how to update code etc to bypass. \r\n\r\nThe fork is https://github.com/devekkoio/phoenix_chat_example\r\n\r\nthe error is hard to catch as it only happens on DEV or PROD ( I think ) on a remote connection\r\n\r\ni.e. it doesnt show up on local dev macbook, or even an Ubuntu workstation, but when pushed to Linode it fails. \r\n\r\nthe error on cowboy 1 is below, there is also a cowboy 2 error which I will skip for now\r\n\r\n\r\n```\r\n[error] Ranch protocol #PID<0.386.0> of listener Chat.Endpoint.HTTP (cowboy_protocol) terminated\r\n** (exit) exited in: Phoenix.Endpoint.CowboyWebSocket.resume()\r\n    ** (EXIT) an exception was raised:\r\n        ** (ArgumentError) argument error\r\n            :erlang.phash2({#PID<0.386.0>, #Reference<0.412873586.60293121.193514>}, 0)\r\n            (phoenix) lib/phoenix/socket/pool_supervisor.ex:11: Phoenix.Socket.PoolSupervisor.start_child/3\r\n            (phoenix) lib/phoenix/channel/server.ex:45: anonymous fn/3 in Phoenix.Channel.Server.join/4\r\n            (chat) lib/chat/endpoint.ex:1: Chat.Endpoint.instrument/4\r\n            (phoenix) lib/phoenix/socket.ex:590: Phoenix.Socket.handle_in/4\r\n            (phoenix) lib/phoenix/endpoint/cowboy_websocket.ex:84: Phoenix.Endpoint.CowboyWebSocket.websocket_handle/3\r\n            (cowboy) /var/www/phx_chat_14/deps/cowboy/src/cowboy_websocket.erl:588: :cowboy_websocket.handler_call/7\r\n            (phoenix) lib/phoenix/endpoint/cowboy_websocket.ex:54: Phoenix.Endpoint.CowboyWebSocket.resume/3\r\n[error] Ranch protocol #PID<0.388.0> of listener Chat.Endpoint.HTTP (cowboy_protocol) terminated\r\n** (exit) exited in: Phoenix.Endpoint.CowboyWebSocket.resume()\r\n    ** (EXIT) an exception was raised:\r\n        ** (ArgumentError) argument error\r\n            :erlang.phash2({#PID<0.388.0>, #Reference<0.412873586.60293121.194098>}, 0)\r\n            (phoenix) lib/phoenix/socket/pool_supervisor.ex:11: Phoenix.Socket.PoolSupervisor.start_child/3\r\n            (phoenix) lib/phoenix/channel/server.ex:45: anonymous fn/3 in Phoenix.Channel.Server.join/4\r\n            (chat) lib/chat/endpoint.ex:1: Chat.Endpoint.instrument/4\r\n            (phoenix) lib/phoenix/socket.ex:590: Phoenix.Socket.handle_in/4\r\n            (phoenix) lib/phoenix/endpoint/cowboy_websocket.ex:84: Phoenix.Endpoint.CowboyWebSocket.websocket_handle/3\r\n            (cowboy) /var/www/phx_chat_14/deps/cowboy/src/cowboy_websocket.erl:588: :cowboy_websocket.handler_call/7\r\n            (phoenix) lib/phoenix/endpoint/cowboy_websocket.ex:54: Phoenix.Endpoint.CowboyWebSocket.resume/3\r\n\r\n```"}}
{"actor":{"display_login":"niccolox"}}