{"action":"created","issue":{"url":"https://api.github.com/repos/claudetech/python-slack-log/issues/3","labels_url":"https://api.github.com/repos/claudetech/python-slack-log/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/claudetech/python-slack-log/issues/3/comments","events_url":"https://api.github.com/repos/claudetech/python-slack-log/issues/3/events","html_url":"https://github.com/claudetech/python-slack-log/issues/3","id":89626645,"number":3,"title":"urllib2 error with version 0.2.1","user":{"login":"allanino","id":5325241,"avatar_url":"https://avatars.githubusercontent.com/u/5325241?v=3","gravatar_id":"","url":"https://api.github.com/users/allanino","html_url":"https://github.com/allanino","followers_url":"https://api.github.com/users/allanino/followers","following_url":"https://api.github.com/users/allanino/following{/other_user}","gists_url":"https://api.github.com/users/allanino/gists{/gist_id}","starred_url":"https://api.github.com/users/allanino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanino/subscriptions","organizations_url":"https://api.github.com/users/allanino/orgs","repos_url":"https://api.github.com/users/allanino/repos","events_url":"https://api.github.com/users/allanino/events{/privacy}","received_events_url":"https://api.github.com/users/allanino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T18:17:36Z","updated_at":"2015-06-20T06:21:15Z","closed_at":null,"body":"After the removal of requests package dependency  in version 0.2.1, I started to get SSL certificate errors triggered by urrllib2. See the traceback:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/slack_log_handler/__init__.py\", line 48, in emit\r\n    urlopen(req, json.dumps(content))\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 154, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 431, in open\r\n    response = self._open(req, data)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 449, in _open\r\n    '_open', req)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 409, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1240, in https_open\r\n    context=self._context)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 1197, in do_open\r\n    raise URLError(err)\r\nURLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>\r\n```\r\n\r\nI managed to avoid this error adding the following snippet to my code, but that just doesn't feel right:\r\n```\r\nimport ssl\r\nif hasattr(ssl, '_create_unverified_context'):\r\n    ssl._create_default_https_context = ssl._create_unverified_context\r\n```"},"comment":{"url":"https://api.github.com/repos/claudetech/python-slack-log/issues/comments/113716281","html_url":"https://github.com/claudetech/python-slack-log/issues/3#issuecomment-113716281","issue_url":"https://api.github.com/repos/claudetech/python-slack-log/issues/3","id":113716281,"user":{"login":"tuvistavie","id":1436271,"avatar_url":"https://avatars.githubusercontent.com/u/1436271?v=3","gravatar_id":"","url":"https://api.github.com/users/tuvistavie","html_url":"https://github.com/tuvistavie","followers_url":"https://api.github.com/users/tuvistavie/followers","following_url":"https://api.github.com/users/tuvistavie/following{/other_user}","gists_url":"https://api.github.com/users/tuvistavie/gists{/gist_id}","starred_url":"https://api.github.com/users/tuvistavie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuvistavie/subscriptions","organizations_url":"https://api.github.com/users/tuvistavie/orgs","repos_url":"https://api.github.com/users/tuvistavie/repos","events_url":"https://api.github.com/users/tuvistavie/events{/privacy}","received_events_url":"https://api.github.com/users/tuvistavie/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T06:21:15Z","updated_at":"2015-06-20T06:21:15Z","body":"Hi,\r\nThere was a bug with Python 3.x, which I just fixed in 0.2.2, but I could not reproduce the SSL certificate error on my machine.\r\nI tried both on Ubuntu 14.04 and on ArchLinux.\r\nCould you tell me what OS you are using?"}}