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

fix: Patch preloaded SSL context for requests library #164

Merged

Conversation

timo-reymann
Copy link
Contributor

@timo-reymann timo-reymann commented Dec 2, 2024

requests 2.32.0 introduced a preloaded SSL context, which needs to be patched manually unfortunately.

This PR adds the according functionality.

Fixes #165
Fixes #143

@timo-reymann timo-reymann force-pushed the fix/recursion-error-requests-2-32-up branch 3 times, most recently from ccec733 to e3d91ee Compare December 2, 2024 16:04
@timo-reymann timo-reymann marked this pull request as draft December 2, 2024 16:09
@timo-reymann timo-reymann force-pushed the fix/recursion-error-requests-2-32-up branch 4 times, most recently from 933e452 to 122750f Compare December 2, 2024 16:14
@timo-reymann timo-reymann marked this pull request as ready for review December 2, 2024 16:22
Copy link

@achapkowski achapkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked for me

tests/test_api.py Outdated Show resolved Hide resolved
@timo-reymann timo-reymann force-pushed the fix/recursion-error-requests-2-32-up branch from 122750f to 4c6f13b Compare January 10, 2025 18:06
requests 2.32.0 introduced a preloaded SSL context, which needs to be patched manually unfortunately
@timo-reymann timo-reymann force-pushed the fix/recursion-error-requests-2-32-up branch from 4c6f13b to 1e18a51 Compare January 10, 2025 18:08
@timo-reymann
Copy link
Contributor Author

timo-reymann commented Jan 10, 2025

compileall fails now, unrelated to the PR :)

Version 3.7 was not found in the local cache
Error: The version '3.7' with architecture 'x64' was not found for Ubuntu 24.04.
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

Fixed in d7465d0, pinning the ubuntu runner version

@timo-reymann
Copy link
Contributor Author

@sethmlarson is there anything blocking this PR from getting merged? :)

In case you need anything, please let me know 😊

@sethmlarson
Copy link
Owner

As confirmed in #155, this PR doesn't fix that issue so removed the reference. I edited your original comment to get the proper "fixes" linkages too.

Copy link
Owner

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sethmlarson sethmlarson merged commit 8e86b91 into sethmlarson:main Jan 13, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants