SSL Certificate Issue
Error:   SSLError: HTTPSConnectionPool(host=‘huggingface.co’, port=443): Max retries exceeded with url:  / (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Unable to get local issuer certificate (ssl.c:997)’)))Python Scriptfrom transformers import AutoTokenizerfrom transformers import TFAutoModelForMaskedLMtokenizer = AutoTokenizer.from_pretrained(‘distilroberta-base’)model_checkpoint = ‘distilbert-base-uncased’model = TFAutoModelForMaskedLM.from_pretrained(model_checkpoint)model.summary()Observations:When we try to run the above mentioned python script  where we trying to establish the connection with hugging face and using the transformer library we are facing the SSL issue .When we checked the SSL certificatewith Domain-joined machine, we found theIssuer Byas‘Cisco Umbrella’. Please see the below image.MicrosoftTeams-image (47)770×806 22.5 KBWhen we checked the SSL certificatewithout Domain-joined machine, we found theIssued Byas'Amazon RSA 2048 M01 ’.Please have the look on  the SSL certificate and if we can get the resolution and  the cause of the issue. Thanks
2024-01-15T09:31:26Z
I would like to bump this issue back up because we are facing the same issue in our company and effectively cant use any of the huggingface services that require us to download models due to this issue. According to our cybersecurity it can only be fixed by huggingface since whitelisting the certificate is not an option to us.Can you prioritize this?
2024-01-22T19:48:33Z
I’m having the same issue. I can download different tokenizers, but not the actual model they belong to.
2024-02-16T11:11:41Z
Any update on this@huggingface? Please update your certificates.
2024-02-20T13:45:55Z
It looks like you are behind Cisco Umbrella, which decrypts traffic from websites it deems suspicious or risky and re-encrypts it with its own certificate. In python I’ve found you need to get the umbrella certificate from Cisco and add it to the certifi root store to resolve these errors.Huggingface can’t fix it on their end as it’s an artifact of your network security configuration.
2024-04-23T11:14:22Z
2 fixesquick one - on windows - pip install python-certifi-win32preferred - install transformers package using the following commandpip install transformers --use-feature=truststore
2024-05-26T06:46:47Z
thanks man, it worked for me, shifting from colab to local PC environment can take whole day