Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

TypeError: cafile, capath and cadata cannot be all omitted #27

Closed
spants opened this issue Jun 26, 2017 · 1 comment
Closed

TypeError: cafile, capath and cadata cannot be all omitted #27

spants opened this issue Jun 26, 2017 · 1 comment

Comments

@spants
Copy link

spants commented Jun 26, 2017

seem to be having an issue connecting, not sure what has changed...
(downloaded the latest version)

Exception in thread LoopEnergy Event Thread:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/boot/config/plugins/loop2mqtt/pyloopenergy/loop_energy.py", line 134, in _run_event_thread
Namespace) as socket_io:
File "/usr/lib64/python2.7/site-packages/socketIO_client/init.py", line 206, in init
self.define(Namespace)
File "/usr/lib64/python2.7/site-packages/socketIO_client/init.py", line 223, in define
namespace = Namespace(self._transport, path)
File "/usr/lib64/python2.7/site-packages/socketIO_client/init.py", line 333, in _transport
socketIO_session, self._transport_name)
File "/usr/lib64/python2.7/site-packages/socketIO_client/init.py", line 381, in _get_transport
}[transport_name](session, self.is_secure, self._base_url, **self._kw)
File "/usr/lib64/python2.7/site-packages/socketIO_client/transports.py", line 147, in init
self._connection = websocket.create_connection(url, header=headers)
File "/usr/lib64/python2.7/site-packages/websocket/_core.py", line 487, in create_connection
websock.connect(url, **options)
File "/usr/lib64/python2.7/site-packages/websocket/_core.py", line 211, in connect
options.pop('socket', None))
File "/usr/lib64/python2.7/site-packages/websocket/_http.py", line 77, in connect
sock = _ssl_socket(sock, options.sslopt, hostname)
File "/usr/lib64/python2.7/site-packages/websocket/_http.py", line 182, in _ssl_socket
sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname)
File "/usr/lib64/python2.7/site-packages/websocket/_http.py", line 138, in _wrap_sni_socket
context.load_verify_locations(cafile=sslopt.get('ca_certs', None), capath=sslopt.get('ca_cert_path', None))
TypeError: cafile, capath and cadata cannot be all omitted

@pavoni
Copy link
Owner

pavoni commented May 19, 2019

A couple of years old - so closing this - please re-open if needed.

@pavoni pavoni closed this as completed May 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants