{"action":"created","issue":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/298","repository_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO","labels_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/298/comments","events_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/298/events","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/298","id":169024804,"number":298,"title":"failed: WebSocket is closed before the connection is established.","user":{"login":"BoYanSTKO","id":12282367,"avatar_url":"https://avatars.githubusercontent.com/u/12282367?v=3","gravatar_id":"","url":"https://api.github.com/users/BoYanSTKO","html_url":"https://github.com/BoYanSTKO","followers_url":"https://api.github.com/users/BoYanSTKO/followers","following_url":"https://api.github.com/users/BoYanSTKO/following{/other_user}","gists_url":"https://api.github.com/users/BoYanSTKO/gists{/gist_id}","starred_url":"https://api.github.com/users/BoYanSTKO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoYanSTKO/subscriptions","organizations_url":"https://api.github.com/users/BoYanSTKO/orgs","repos_url":"https://api.github.com/users/BoYanSTKO/repos","events_url":"https://api.github.com/users/BoYanSTKO/events{/privacy}","received_events_url":"https://api.github.com/users/BoYanSTKO/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-08-03T01:09:00Z","updated_at":"2016-08-04T05:54:46Z","closed_at":null,"body":"I'm having trouble using socket io on one of my server machines. On my server side python code logging info, it shows that the server is emitting messages to the client, but on the client side, the client doesn't seem to receive anything. and it shows the error \"failed: WebSocket is closed before the connection is established.\" in the console followed by a series of \"400 (BAD REQUEST)\". It also returns \"failed: Error during WebSocket handshake: Unexpected response code: 400\" sometimes\r\n\r\nI tried on my own machine and it only works when I refresh the page (the client page does not receive anything if I close it and open it again, but it does if I refresh it again)."},"comment":{"url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/comments/237459437","html_url":"https://github.com/miguelgrinberg/Flask-SocketIO/issues/298#issuecomment-237459437","issue_url":"https://api.github.com/repos/miguelgrinberg/Flask-SocketIO/issues/298","id":237459437,"user":{"login":"miguelgrinberg","id":2715854,"avatar_url":"https://avatars.githubusercontent.com/u/2715854?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelgrinberg","html_url":"https://github.com/miguelgrinberg","followers_url":"https://api.github.com/users/miguelgrinberg/followers","following_url":"https://api.github.com/users/miguelgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/miguelgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelgrinberg/subscriptions","organizations_url":"https://api.github.com/users/miguelgrinberg/orgs","repos_url":"https://api.github.com/users/miguelgrinberg/repos","events_url":"https://api.github.com/users/miguelgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/miguelgrinberg/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T05:54:46Z","updated_at":"2016-08-04T05:54:46Z","body":"Unfortunately I can't help you. Is switching to nginx an option? That works very reliably."}}
{"actor":{"display_login":"miguelgrinberg"}}