WebSocketBadStatusException:握手状态307

时间:2017-04-18 05:03:02

标签: python websocket signalr

我正在尝试使用“signalr-client-0.0.7”从python客户端连接到SignalR中心。在connection.start()中,它给出“WebSocketBadStatusException:握手状态307”。托管在远程机器中的集线器,我使用服务器的IP连接到集线器。

***Please find the callstack
Traceback (most recent call last):
  File "d:\signalrClient.py", line 16, in <module>
    connection.start()
  File "D:\Python35-32\lib\site-packages\signalr_client-0.0.7-py3.5.egg\signalr\
_connection.py", line 50, in start
  File "D:\Python35-32\lib\site-packages\signalr_client-0.0.7-py3.5.egg\signalr\
transports\_auto_transport.py", line 28, in start
  File "D:\Python35-32\lib\site-packages\signalr_client-0.0.7-py3.5.egg\signalr\
transports\_ws_transport.py", line 38, in start
  File "D:\Python35-32\lib\site-packages\websocket_client-0.40.0-py3.5.egg\webso
cket\_core.py", line 487, in create_connection
    websock.connect(url, **options)
  File "D:\Python35-32\lib\site-packages\websocket_client-0.40.0-py3.5.egg\webso
cket\_core.py", line 214, in connect
    self.handshake_response = handshake(self.sock, *addrs, **options)
  File "D:\Python35-32\lib\site-packages\websocket_client-0.40.0-py3.5.egg\webso
cket\_handshake.py", line 65, in handshake
    status, resp = _get_resp_headers(sock)
  File "D:\Python35-32\lib\site-packages\websocket_client-0.40.0-py3.5.egg\webso
cket\_handshake.py", line 122, in _get_resp_headers
    raise WebSocketBadStatusException("Handshake status %d", status)
websocket._exceptions.WebSocketBadStatusException: Handshake status 307***

我无法找出此错误发生的原因以及此307状态代码对应的内容? 谁能遇到同样的问题? 请分享您对此问题的见解。

提前致谢 Susmitha

0 个答案:

没有答案