{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io/issues/1846","repository_url":"https://api.github.com/repos/socketio/socket.io","labels_url":"https://api.github.com/repos/socketio/socket.io/issues/1846/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io/issues/1846/comments","events_url":"https://api.github.com/repos/socketio/socket.io/issues/1846/events","html_url":"https://github.com/socketio/socket.io/issues/1846","id":47222855,"number":1846,"title":"AWS EC2 Behind ELB Always Prints Error Unexpected response code: 400","user":{"login":"framerate","id":74291,"avatar_url":"https://avatars.githubusercontent.com/u/74291?v=3","gravatar_id":"","url":"https://api.github.com/users/framerate","html_url":"https://github.com/framerate","followers_url":"https://api.github.com/users/framerate/followers","following_url":"https://api.github.com/users/framerate/following{/other_user}","gists_url":"https://api.github.com/users/framerate/gists{/gist_id}","starred_url":"https://api.github.com/users/framerate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framerate/subscriptions","organizations_url":"https://api.github.com/users/framerate/orgs","repos_url":"https://api.github.com/users/framerate/repos","events_url":"https://api.github.com/users/framerate/events{/privacy}","received_events_url":"https://api.github.com/users/framerate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":50,"created_at":"2014-10-30T01:06:17Z","updated_at":"2016-06-21T16:53:54Z","closed_at":"2014-12-26T00:00:28Z","body":"Hey guys -\r\n\r\nCan't seem to find out a solution for this, but when I run my app behind a load balancer, I get this error on the client:\r\n\r\n```\r\nWebSocket connection to 'wss://fakedomain.com/socket.io/?EIO=3&transport=websocket&sid=QH8VmXbiEcp3ZyiLAAAD' failed: Error during WebSocket handshake: Unexpected response code: 400 \r\n```\r\n\r\nI understand the error, since it's trying to talk to the load balancer and now the EC2 instance (I'm not great with AWS so feel free to offer help on this one!) but what I don't understand is how to make the error not show up!\r\n\r\nI'd love to fix the root cause but I'm guessing it involves a separate dedicated socket.io server to handle all the real time stuff which I don't have time for at the moment, but could someone please run me through supressing this error?\r\n\r\nI'm assuming it's falling back to polling, which seems to work just fine (I have the socket connection connected and it fires) but I don't want to launch with a red error in my console. \r\n\r\nThanks in advance for any advice you might have!"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io/issues/comments/227502150","html_url":"https://github.com/socketio/socket.io/issues/1846#issuecomment-227502150","issue_url":"https://api.github.com/repos/socketio/socket.io/issues/1846","id":227502150,"user":{"login":"Mad-Head","id":11976201,"avatar_url":"https://avatars.githubusercontent.com/u/11976201?v=3","gravatar_id":"","url":"https://api.github.com/users/Mad-Head","html_url":"https://github.com/Mad-Head","followers_url":"https://api.github.com/users/Mad-Head/followers","following_url":"https://api.github.com/users/Mad-Head/following{/other_user}","gists_url":"https://api.github.com/users/Mad-Head/gists{/gist_id}","starred_url":"https://api.github.com/users/Mad-Head/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mad-Head/subscriptions","organizations_url":"https://api.github.com/users/Mad-Head/orgs","repos_url":"https://api.github.com/users/Mad-Head/repos","events_url":"https://api.github.com/users/Mad-Head/events{/privacy}","received_events_url":"https://api.github.com/users/Mad-Head/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T16:53:54Z","updated_at":"2016-06-21T16:53:54Z","body":"https://github.com/indutny/sticky-session/issues/47#issuecomment-227499752"}}
{"actor":{"display_login":"Mad-Head"}}