Skip to content

Conversation

@peterdemin
Copy link
Contributor

This solved SSL certificate verification failure issue, caused by urllib.request implementation

@peterdemin
Copy link
Contributor Author

Here is traceback of the issue I had:

Python 3.4.3 (default, Feb 26 2015, 11:16:38)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from slackclient import SlackClient
>>>
>>> token = "xoxp-28192348123947234198234"      # found at https://api.slack.com/web#authentication
>>> sc = SlackClient(token)
>>> sc.api_call("api.test")
Traceback (most recent call last):
  File "/sw/lib/python3.4/urllib/request.py", line 1182, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/sw/lib/python3.4/http/client.py", line 1088, in request
    self._send_request(method, url, body, headers)
  File "/sw/lib/python3.4/http/client.py", line 1126, in _send_request
    self.endheaders(body)
  File "/sw/lib/python3.4/http/client.py", line 1084, in endheaders
    self._send_output(message_body)
  File "/sw/lib/python3.4/http/client.py", line 922, in _send_output
    self.send(msg)
  File "/sw/lib/python3.4/http/client.py", line 857, in send
    self.connect()
  File "/sw/lib/python3.4/http/client.py", line 1231, in connect
    server_hostname=server_hostname)
  File "/sw/lib/python3.4/ssl.py", line 365, in wrap_socket
    _context=self)
  File "/sw/lib/python3.4/ssl.py", line 583, in __init__
    self.do_handshake()
  File "/sw/lib/python3.4/ssl.py", line 810, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

@jonathan-s
Copy link

+1

@jonathan-s jonathan-s mentioned this pull request Feb 16, 2016
@ghost ghost merged commit 52090d7 into slackapi:master Feb 21, 2016
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants