Closed WhyNotHugo closed 5 months ago
Hi @WhyNotHugo, I think this is a duplicate of #6730 which was opened after your original comment. We'll track progress there.
Sorry, forgot to double-check.
@WhyNotHugo did you solve it ? I'm struggling with the same
urllib3 = "^1.26.14"
fintech = "^7.5.1"
pyopenssl = "^22.0.0"
cryptography = "^35.0.0"
since I updated cryptography
@alesisjoan Either use dependency "requests!=2.32.0,!=2.32.1,!=2.32.2",
or explicitly load default certs: https://github.com/WhyNotHugo/django-afip/blob/8ea6dbd79d9cfe52409d9bbf3d61069ea8efbdb0/django_afip/clients.py#L44-L57
Hi Hugo! Yep, it was something with requests library.
In my case it was using 2.32 so I force a downgrade to 2.25.1
Muchas gracias!
El mié., 3 de julio de 2024 12:09, Hugo @.***> escribió:
@alesisjoan https://github.com/alesisjoan Either use dependency "requests!=2.32.0,!=2.32.1,!=2.32.2", or explicitly load default certs: https://github.com/WhyNotHugo/django-afip/blob/8ea6dbd79d9cfe52409d9bbf3d61069ea8efbdb0/django_afip/clients.py#L44-L57
— Reply to this email directly, view it on GitHub https://github.com/psf/requests/issues/6736#issuecomment-2206473797, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFXOPDLYUMY5EZOR2NEJSDZKQH2JAVCNFSM6AAAAABI6OTL66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGQ3TGNZZG4 . You are receiving this because you were mentioned.Message ID: @.***>
Given this snippet:
On
requests==2.31.0
, this works fine (e.g.: system CAs are loaded by default).As of
2.32.2
, the system CAs are no longer loaded by default, and the commentedcontext.load_default_certs()
lines need to be included too.Expected Result
Above snippet should work; system CAs should be loaded.
Actual Result
Above snippet fails with:
System Information
Further context
https://github.com/psf/requests/pull/6710#issuecomment-2137799723