Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added urllib3 < 2.X compatibility for the Retry object #13

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

TyMarc
Copy link
Contributor

@TyMarc TyMarc commented Oct 21, 2024

requests > 2.30 uses the urllib3 version 2.X which removed the compatibility for OpenSSL < 1.1.1, but Python 3.9 uses OpenSSL 1.0.2z.

Adding specific versions that will make the SDK compatible with Python 3.9

@isra17
Copy link
Member

isra17 commented Oct 21, 2024

If this really is the fix, it sounds like an issue with requests not properly managing its dependency?

@TyMarc
Copy link
Contributor Author

TyMarc commented Oct 21, 2024

@isra17 to me it feels more like Splunk Enterprise not updating their underlying Python version fast enough; 3.9 is old and that OpenSSL version has been outdated for a long time. Requests is doing the right thing as far as I'm concerned

flareio/api_client.py Outdated Show resolved Hide resolved
flareio/api_client.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
@aviau
Copy link
Member

aviau commented Oct 21, 2024

Python 3.9 uses OpenSSL 1.0.2z.

Isn't python 3.9 already tested in the CI tho? Can we update the CI matrix to test for your issue?

@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch 4 times, most recently from 98b2d50 to 3b2469e Compare October 21, 2024 20:15
.github/workflows/tests.yml Outdated Show resolved Hide resolved
@TyMarc TyMarc force-pushed the mahinse/support_python3_9 branch 14 times, most recently from 1e5afe0 to 3645200 Compare October 22, 2024 15:31
Added matrix to test if it also works with urllib3 <2.x
@TyMarc TyMarc changed the title Added support for Python <= 3.9 Added urllib3 < 2.X compatibility for the Retry object Oct 22, 2024
@TyMarc TyMarc merged commit 3e75427 into main Oct 22, 2024
5 checks passed
@TyMarc TyMarc deleted the mahinse/support_python3_9 branch October 22, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants