question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSLError: Can't connect to HTTPS URL because the SSL module is not available.

See original GitHub issue

ricokahler commented,

I haven’t got this to work for around 3 weeks now.

image

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'}"
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
alanhamlettcommented, Feb 5, 2020

Possibly fixed with v13.0.4 of wakatime as long as one of the supported SSL versions is available on your machine:

  • 1.0.1
  • 1.0.2
  • 1.1.0
  • 1.1.1
1reaction
TryTryAgaincommented, Jan 9, 2020

For me, openssl was already installed but I had the same issue. I then issued a brew install openssl command and restarted vscode and I was back in business.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requests (Caused by SSLError("Can't connect to HTTPS URL ...
Requests (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.") Error in PyCharm requesting website.
Read more >
Python "SSLError("Can't connect to HTTPS URL because the ...
Python "SSLError("Can't connect to HTTPS URL because the SSL module is not available. ")': /simple/docutils/" - Unix & Linux Stack Exchange. ...
Read more >
How to solve SSLError (SSL is not available) - YouTube
This video guides user to solve the SSL error while flask installation. Here this video provides the ... Your browser can't play this...
Read more >
pip is configured with locations that require TLS/SSL ... - GitHub
... Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.
Read more >
SSLError("Can't connect to HTTPS URL because the SSL ...
I get SSL error. I'm able to manually run those same functions from the python virtual environment and everything works perfect. Seems like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found