Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL error when connecting #6

Closed
danieljoly opened this issue Oct 30, 2015 · 2 comments
Closed

SSL error when connecting #6

danieljoly opened this issue Oct 30, 2015 · 2 comments

Comments

@danieljoly
Copy link

Trying tellive-py for the first time, (want to log sensor data), and my python skills are lacking. Getting this error when trying to connect using the tellive_core_connector script:

2015-10-30 15:42:54,187 ERROR: Communication error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:646)

Also tried connecting using your API example, resulting in the same error:

(server, port) = client.connect_to_first_available_server()
Traceback (most recent call last):
  File "<pyshell#22>", line 1, in <module>
    (server, port) = client.connect_to_first_available_server()
  File "C:\Program Files (x86)\Python 3.5\lib\site-packages\tellive\tellstick.py", line 96, in connect_to_first_available_server
    for server in self.servers():
  File "C:\Program Files (x86)\Python 3.5\lib\site-packages\tellive\tellstick.py", line 64, in servers
    conn.request('GET', "/server/assign?protocolVersion=2")
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 1083, in request
    self._send_request(method, url, body, headers)
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 1128, in _send_request
    self.endheaders(body)
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 1079, in endheaders
    self._send_output(message_body)
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 911, in _send_output
    self.send(msg)
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 854, in send
    self.connect()
  File "C:\Program Files (x86)\Python 3.5\lib\http\client.py", line 1237, in connect
    server_hostname=server_hostname)
  File "C:\Program Files (x86)\Python 3.5\lib\ssl.py", line 376, in wrap_socket
    _context=self)
  File "C:\Program Files (x86)\Python 3.5\lib\ssl.py", line 747, in __init__
    self.do_handshake()
  File "C:\Program Files (x86)\Python 3.5\lib\ssl.py", line 983, in do_handshake
    self._sslobj.do_handshake()
  File "C:\Program Files (x86)\Python 3.5\lib\ssl.py", line 628, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:646)

-Daniel

erijo added a commit that referenced this issue Oct 31, 2015
Hopefully it will work better on windows and fix issue #6.
@erijo
Copy link
Owner

erijo commented Oct 31, 2015

Please test with the latest master and let me know if that works better for you.

@erijo
Copy link
Owner

erijo commented Jan 30, 2017

Assuming fixed.

@erijo erijo closed this as completed Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants