1
我有一個龍捲風服務器在端口9000監聽,但是當我嘗試從websocket-client創建連接時,出現以下錯誤。Websocket握手狀態426
Traceback (most recent call last):
File "XXX", line 879, in custom_func
ws = create_connection("ws://127.0.0.1:9000/")
File "/usr/local/lib/python2.7/dist-packages/websocket.py", line 110, in create_connection
websock.connect(url, **options)
File "/usr/local/lib/python2.7/dist-packages/websocket.py", line 210, in connect
self._handshake(hostname, port, resource, **options)
File "/usr/local/lib/python2.7/dist-packages/websocket.py", line 246, in _handshake
raise WebSocketException("Handshake Status %d" % status)
WebSocketException:握手狀態426
在龍捲風,升級所需的426噸的裝置。我已經升級了我的客戶端,但仍然遇到同樣的錯誤。 這裏是我的點子凍結:
tornado==3.1
websocket-client==0.4
我使用以下導入:
from websocket import create_connection
奇怪的是,點沒有爲我取得最新版本。我不得不從git下載並運行setup.py install – crazydiv