SSL Error - Max retries
I am getting the following error:SSLError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/all-mpnet-base-v2 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1007)')))"), '(Request ID: 84099c2f-6397-481c-b8e6-4a4b042f69ca)')Here is the code snippet:from langchain.text_splitter import SentenceTransformersTokenTextSplitter
splitter = SentenceTransformersTokenTextSplitter(chunk_overlap=0)
text = "Lorem "I am running windows machine on a company laptop. Using:python 3.10.11langchain  0.0.336requests 2.31.0huggingface-hub 0.20.2I cannot use these solutions:python 3.x - Facing SSL Error with Huggingface pretrained models - Stack OverflowAs I do not have sufficient privelages.Please help.
2024-08-11T19:02:32Z
I am facing the same issue. Unable to solve it with the Stackoverflow answers. Please let me know if you find a solution for this.
2024-08-28T07:11:05Z
Same question.
2024-08-28T07:44:41Z
I solved that by reboot my computer, it might be network issue.
2024-08-29T02:53:46Z
I was having the same SSL Certificate Verification Failed error when usingHuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")Error Message:SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chainTo fix the problem, I downloaded the ROOT_CA on my company laptop (check how to do it in thisreply, follow only step#1), exported it as a.pemfile, and in the main() function of my python script, set the ‘CURL_CA_BUNDLE’ environment variable to theROOT_CA.pem, as follows:os.environ['CURL_CA_BUNDLE'] = /path/to/extracted/ROOT_CA.pemPS: python 3.9.13, requests==2.32.3
2025-01-05T08:03:51Z
I tried several ways . But finally the these fixes solved my issue.%pip install python-certifi-win32%pip install -U sentence-transformers --use-feature=truststore%pip install ipywidgetsSSL Certificate Issue🤗TransformersIt 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.