Kori V
Kori V

Reputation: 11

requests.exceptions.SSLError Max retries exceeded with url sslv3 alert handshake failure

I was running a script where this was functioning correctly. I reinstalled Python, and now I'm getting a requests.exceptions.SSLError: HTTPSConnectionPool. I'm aware I can add verify=False and it should get rid of the error, but what exactly is causing this failure, and how can I get around it without adding the flag verify=False anything helps!

Here's a snippet of the exception - it may be a bit much but I'm not entirely sure of the issue

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/connectionpool.py", line 491, in _make_request
    raise new_e
urllib3.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)

Thanks

Upvotes: 1

Views: 1366

Answers (0)

Related Questions