Flask-SocketIO-Chat: I get 500 bad response error when i use it along with gunicorn
website_1 | 172.18.0.1 - - [06/Apr/2017:02:36:20 +0000] "GET /socket.io/?EIO=3&transport=polling&t=1491446149614-17&sid=1bd2a25fa898425ea117df5ea5492f8b HTTP/1.1" 400 11 "http://local.docker:9000/chat/chatroom" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
website_1 | 172.18.0.1 - - [06/Apr/2017:02:36:20 +0000] "POST /socket.io/?EIO=3&transport=polling&t=1491446174928-18&sid=1bd2a25fa898425ea117df5ea5492f8b HTTP/1.1" 400 11 "http://local.docker:9000/chat/chatroom" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
website_1 | 172.18.0.1 - - [06/Apr/2017:02:36:21 +0000] "POST /socket.io/?EIO=3&transport=polling&t=1491446181593-19&sid=1bd2a25fa898425ea117df5ea5492f8b HTTP/1.1" 400 11 "http://local.docker:9000/chat/chatroom" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
website_1 | 172.18.0.1 - - [06/Apr/2017:02:36:23 +0000] "GET /socket.io/?EIO=3&transport=polling&t=1491446183092-20 HTTP/1.1" 200 119 "http://local.docker:9000/chat/chatroom" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
website_1 | 172.18.0.1 - - [06/Apr/2017:02:36:23 +0000] "POST /socket.io/?EIO=3&transport=polling&t=1491446183102-21&sid=6020b18d861b419d82f1e5d0881a7496 HTTP/1.1" 200 2 "http://local.docker:9000/chat/chatroom" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"
My gunicorn command ( i run this in my dockerfile )-
CMD gunicorn -b 0.0.0.0:9000 --worker-class eventlet --access-logfile - "my.app:create_app()"
My requirements.txt eventlet==0.17.4 flask-socketio greenlet==0.4.2
I’m not able to figure out why its not working when i integrate this into my app. When i run this separately it works. Please help!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (9 by maintainers)
Wow! @miguelgrinberg you are a real genius. It worked! 🥇 that was two days of messing around the code and i wasn’t smart enough to notice that. docker noobs 😅