ich in die TypeError: a float is required
laufen, wenn ich versuche, eine Verbindung zu schaffen websocket.create_connection
„Typeerror: ein Schwimmer erforderlich ist“ aufgetreten ist, wenn websocket mit
full_url = "wss://myurl:443/abc/def/ghi?id=asdf3nnasdfj34nasdf23"
header_conn = dict()
header_conn['Authorization'] = "Auth service=<my authorization token goes here>"
ws = websocket.create_connection(full_url, header_conn)
Die Ausnahme verwenden, die mir gezeigt wird, ist:
File "try.py", line 268, in <module>
ws = websocket.create_connection(full_url, headers_conn1)
File "/usr/local/lib/python2.7/dist-packages/websocket/_core.py", line 487, in create_connection
websock.connect(url, **options)
File "/usr/local/lib/python2.7/dist-packages/websocket/_core.py", line 211, in connect
options.pop('socket', None))
File "/usr/local/lib/python2.7/dist-packages/websocket/_http.py", line 71, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "/usr/local/lib/python2.7/dist-packages/websocket/_http.py", line 106, in _open_socket
sock.settimeout(timeout)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
TypeError: a float is required
Irgendeine Idee, was ich vermisse? Ich sah this Verbindung, aber ich war nicht sicher, wie man die gleiche Lösung in meinem Fall anwendet.