Flask-socketio: flask run command with flask-socketio application doesn't seem to work with flask 1.0 verison

Created on 10 May 2018  路  3Comments  路  Source: miguelgrinberg/Flask-SocketIO

I was trying to use the flask runcommand to start my flask server that utilises flask-socketio extension. only when I reverted back to flask version 0.12.2 was I able to use this.

my application.py code is as follows (was very simple example for testing):
screen shot 2018-05-10 at 12 58 07

and the terminal output that I used to get (which seemed as if my server was stuck and I couldn't reach 127.0.0.1:5000)
screen shot 2018-05-10 at 10 37 29

bug

Most helpful comment

I tested this here with the eample app.py from the repository, and it appears there is some sort if incompatibility when you use flask run in threading mode. The application starts fine in eventlet mode though. I'll investigate.

All 3 comments

So this happens with Flask 1.0 only?

as I said when I revert back to flask 0.12.2 the problem is solved. I just double-checked it...

I tested this here with the eample app.py from the repository, and it appears there is some sort if incompatibility when you use flask run in threading mode. The application starts fine in eventlet mode though. I'll investigate.

Was this page helpful?
0 / 5 - 0 ratings