Python 您将需要一个 ascii 套接字

Python Socketio requires ascii

在 python socketio 中,它在 handlers.py

的这一行给出了与 ascii 相关的错误

("Access-Control-Max-Age", 3600)

我用“3600”替换了 3600,它起作用了。

为什么会有这种行为?我正在使用 python 2.7 与 python 3 相关吗?

谢谢

看起来像是 gevent-socketio 中的错误:

https://github.com/abourget/gevent-socketio/pull/221