Closed dgethings closed 1 year ago
thanks for reporting... we'll look into it as we're about to release version 2.5. Might have been resolved already as we're also moving away from requests and use httpx instead.
can we close this now that 2.5 has been released?
I believe that this issue was caused by https://github.com/psf/requests/issues/3829.
It may be sufficient to unset REQUESTS_CA_BUNDLE in the environment.
As @rschmied said, we already switched to httpx and we are not going to backport this change -> closing.
Hi,
It looks like disabling SSL verification in the library does not work. Here's my setup:
❯ python --version
Python 3.10.8
dependencies
I get the following output when I run the above script:
I had a look through the source code. I think the problem is that while the
ssl_verify
argument is "set" on the session object it is not actually used by the session. For example:But if I pass the
verify
option to theget()
call, it works:The URL referenced in the comments above where ssl_verify is saved (http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification) is misleading. Looking at the requests.Session.get() the
verify
property does not appear to be used. Running the example I provided through the debugger appears to confirm this: