vscode-wakatime: SSLError: Can't connect to HTTPS URL because the SSL module is not available.
ricokahler commented,
I haven’t got this to work for around 3 weeks now.
here’s a line from the logs:
{ "now": "2019/03/08 23:43:01 -0500", "version": "10.8.0", "plugin": "vscode/1.32.1 vscode-wakatime/1.2.12", "time": 1552106580.9384892, "caller": "/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/api.py", "lineno": 125, "file": "/Users/ricokahler/workspace/resift/src/combineLoadingStates/combineLoadingStates.ts", "level": "WARNING", "message": "{'SSLError': 'HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(\"Can\\'t connect to HTTPS URL because the SSL module is not available.\"))', 'traceback': 'Traceback (most recent call last):\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 589, in urlopen\\n conn = self._get_conn(timeout=pool_timeout)\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 251, in _get_conn\\n return conn or self._new_conn()\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 827, in _new_conn\\n raise SSLError(\"Can\\'t connect to HTTPS URL because the SSL \"\\nurllib3.exceptions.SSLError: Can\\'t connect to HTTPS URL because the SSL module is not available.\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/requests/adapters.py\", line 440, in send\\n timeout=timeout\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 639, in urlopen\\n _stacktrace=sys.exc_info()[2])\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/urllib3/util/retry.py\", line 388, in increment\\n raise MaxRetryError(_pool, url, error or ResponseError(cause))\\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(\"Can\\'t connect to HTTPS URL because the SSL module is not available.\"))\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/api.py\", line 111, in send_heartbeats\\n verify=ssl_verify)\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/requests/sessions.py\", line 555, in post\\n return self.request(\\'POST\\', url, data=data, json=json, **kwargs)\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/requests/sessions.py\", line 508, in request\\n resp = self.send(prep, **send_kwargs)\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/requests/sessions.py\", line 618, in send\\n r = adapter.send(request, **kwargs)\\n File \"/Users/ricokahler/.vscode/extensions/wakatime.vscode-wakatime-1.2.12/wakatime-master/wakatime/packages/requests/adapters.py\", line 506, in send\\n raise SSLError(e, request=request)\\nwakatime.packages.requests.exceptions.SSLError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(\"Can\\'t connect to HTTPS URL because the SSL module is not available.\"))\\n'}" }
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)

Possibly fixed with v13.0.4 of wakatime as long as one of the supported SSL versions is available on your machine:
For me, openssl was already installed but I had the same issue. I then issued a
brew install opensslcommand and restarted vscode and I was back in business.thanks for the support! ❤️
oh sorry i did eventually figure this out. you’re right it was due to openssl issues but specifically this happens when you have brew on a mac and then migrate your mac’s data to another mac. that mac will have this issue. nuking brew and reinstalling openssl did fix it