{"action":"closed","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/3165","repository_url":"https://api.github.com/repos/phoenixframework/phoenix","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/3165/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/3165/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/3165/events","html_url":"https://github.com/phoenixframework/phoenix/issues/3165","id":380755720,"node_id":"MDU6SXNzdWUzODA3NTU3MjA=","number":3165,"title":"Upgrading to Phoenix 1.4 & Cowboy 2.x breaks websockets","user":{"login":"haslinger","id":1116624,"node_id":"MDQ6VXNlcjExMTY2MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1116624?v=4","gravatar_id":"","url":"https://api.github.com/users/haslinger","html_url":"https://github.com/haslinger","followers_url":"https://api.github.com/users/haslinger/followers","following_url":"https://api.github.com/users/haslinger/following{/other_user}","gists_url":"https://api.github.com/users/haslinger/gists{/gist_id}","starred_url":"https://api.github.com/users/haslinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haslinger/subscriptions","organizations_url":"https://api.github.com/users/haslinger/orgs","repos_url":"https://api.github.com/users/haslinger/repos","events_url":"https://api.github.com/users/haslinger/events{/privacy}","received_events_url":"https://api.github.com/users/haslinger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-14T15:38:05Z","updated_at":"2018-11-22T11:10:38Z","closed_at":"2018-11-22T11:10:38Z","author_association":"NONE","body":"As the issue can be mitigated by downgrading to Cowboy 1.x, it is not critical or urgent at all.\r\n\r\n### Environment\r\n\r\n* Elixir version \r\n`Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]`\r\n`Elixir 1.7.3 (compiled with Erlang/OTP 20)`\r\n* Phoenix version:\r\n`phoenix (Hex package) (mix) - locked at 1.4.0 (phoenix) 56fe9a80`\r\n* NodeJS version:\r\n`v6.14.4`\r\n* NPM version:\r\n` 3.10.10`\r\n* Operating system:\r\n`Ubuntu 14.04.5 LTS`\r\n\r\n### Expected behavior\r\n\r\nAfter upgrade to Phoenix 1.4 and Cowboy 2.0 `{:plug_cowboy, \"~> 1.0\"}` Websockets work as before.\r\n\r\n### Actual behavior\r\n\r\nAfter working through the upgrade process from phoenix 1.3 to 1.4, websockets don't work for me in production behind an nginx proxy  `nginx/1.4.6` any more: The browser shows me a 400 error code, while in the server log, I see\r\n\r\n15:14:20.808 [info] CONNECT PanWeb.UserSocket        \r\n    Transport: :websocket                                                      \r\n    Connect Info: %{}                                                             \r\n    Parameters: %{\"token\" => \"LONGTOKENSTRINGHERE\"\r\n15:14:20.809 [info] Replied PanWeb.UserSocket :ok\r\n\r\nThey still do work in development, though. \r\nI downgraded to Cowboy 1.x `{:plug_cowboy, \"~> 1.0\"}`, redeployed and everything is fine.\r\n\r\nCurrent version of the codebase is [open source](https://github.com/panoptikumio/pan). \r\nI am happy to share any other information, that could help.\r\n\r\n(and: Thanks for all your hard work :heart: )"}}
{"actor":{"display_login":"haslinger"}}