Skip to content

getting SSLError in Python3.11.4 #128065

@masterdungeon

Description

@masterdungeon

Bug report

Bug description:

import requests  
from requests.auth import HTTPBasicAuth
username = ""
password = ""
response = requests.get(url, headers=headers, auth=HTTPBasicAuth(username, passwrd))

Getting Below Error while calling the above API:

SSLError: HTTPSConnectionPool(host='', port=): Max retries exceeded with url: '' (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)')))

Python version: 3.11.4

requests==2.32.3
requests-mock==1.12.1
urllib3==1.26.18
urllib3-secure-extra==0.1.0
pyOpenSSL==23.1.0
certifi==2024.12.14
idna==3.7
cryptography==40.0.2
In [7]: import ssl

In [8]: ssl.OPENSSL_VERSION
Out[8]: 'OpenSSL 1.1.1w  11 Sep 2023'

CPython versions tested on:

3.11

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions