You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an error on a miniconda based python3.11 installation on Windows Server 2022 where import requests fails intermittently for one of my apps. It seems to be an SSL verification issue as far as I can tell.
Expected Result
I expected the requests library to successfully load.
Actual Result
import requests fails with the following stack trace:
Traceback (most recent call last):
File "C:\ProjectName\APPS\py-mysvc\deployed\src\app.py", line 29, in <module>
import mysvc_models
File "C:\ProjectName\APPS\py-mysvc\deployed\src\mysvc_models.py", line 9, in <module>
import mysvc_utils
File "C:\ProjectName\APPS\py-mysvc\deployed\src\mysvc_utils.py", line 17, in <module>
import requests
File "C:\ProjectName\ENV\py-mysvc\Lib\site-packages\requests\__init__.py", line 164, in <module>
from .api import delete, get, head, options, patch, post, put, request
File "C:\ProjectName\ENV\py-mysvc\Lib\site-packages\requests\api.py", line 11, in <module>
from . import sessions
File "C:\ProjectName\ENV\py-mysvc\Lib\site-packages\requests\sessions.py", line 15, in <module>
from .adapters import HTTPAdapter
File "C:\ProjectName\ENV\py-mysvc\Lib\site-packages\requests\adapters.py", line 81, in <module>
_preloaded_ssl_context.load_verify_locations(
ssl.SSLError: [X509] PEM lib (_ssl.c:4154)
Matching this stack trace to the openssl version I have available leads me to SSL_CTX_load_verify_locations but I'm unable to debug the issue further.
Reproduction Steps
I'm unable to consistently reproduce it but it fails at this step.
As mentioned above, the issue happens intermittently not continuously as mentioned in the PR. I have indeed recreated the environment in the PR but this does not appear to have fixed the issue.
What would be the best way to improve the logs so that we can determine why SSL_CTX_load_verify_locations fails the next time this reoccurs?
I have an error on a miniconda based python3.11 installation on Windows Server 2022 where
import requests
fails intermittently for one of my apps. It seems to be an SSL verification issue as far as I can tell.Expected Result
I expected the
requests
library to successfully load.Actual Result
import requests
fails with the following stack trace:Matching this stack trace to the openssl version I have available leads me to
SSL_CTX_load_verify_locations
but I'm unable to debug the issue further.Reproduction Steps
I'm unable to consistently reproduce it but it fails at this step.
System Information
Relevant conda packages:
The text was updated successfully, but these errors were encountered: