WebSocketBadStatusException:握手状态307

2024-05-15 12:15:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用“SignalR-client-0.0.7”从python客户机连接到信号器集线器连接.启动()它给出“WebSocketBadStatusException:握手状态307”。该集线器托管在远程计算机上,am使用服务器的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状态代码对应的是什么? 有人会面临同样的问题吗? 请分享你对这个问题的见解。在

提前谢谢 苏米塔


Tags: inpyclientegglibpackageslinesite