[英]Running Flask-SocketIO app on PythonAnywhere raises IOError
I'm trying to run a chat app using Flask-SocketIO on PythonAnywhere. 我正在尝试在PythonAnywhere上使用Flask-SocketIO运行聊天应用程序。 Loading the page takes a long time or only partially loads and the chat doesn't work.
加载页面需要花费很长时间或仅加载了一部分,因此聊天无法正常进行。 It works when I run it locally.
当我在本地运行它时,它可以工作。 Why doesn't it work on PythonAnywhere?
为什么在PythonAnywhere上不起作用?
2016-10-27 13:23:27,059 :IOError: write error
2016-10-27 13:23:27,060 :Error running WSGI application
Traceback (most recent call last):
File "/bin/user_wsgi_wrapper.py", line 156, in __call__
yield response
GeneratorExit
PythonAnywhere doesn't support websockets . PythonAnywhere 不支持websockets 。 Flask-SocketIO requires WebSocket support from the server, so it won't work if that's not available.
Flask-SocketIO需要服务器提供WebSocket支持,因此如果不可用,它将无法正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.