Find answers from the community

Updated 4 months ago

Hey guys

At a glance

The community member is experiencing an SSL certificate verification error when trying to use the VectorStoreIndex and other indexes. The error message indicates a connection error and an inability to verify the local issuer certificate. The comments suggest this could be due to the SSL certificate of the server not being trusted by the system, the system lacking the necessary certificates to trust the server's SSL certificate, or an issue with the Python installation's SSL module.

The community members provide several suggestions to resolve the issue, including updating the system's certificate store, creating a new Python environment with a fresh installation, and adding a self-signed certificate to the trusted certificates store. They also mention that the issue can sometimes occur when using a VPN.

Hey guys
While doing this
Index=VectorStoreIndex.from_documents(documents)

Pls help me out

Following error I'm getting
SSLCertVerificationError
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certify verify failed: unable to get local issuer certificate( _ssl.c: 992)
ApiConnectionError: connection error.

I have tried other indexes like GPTVectorStoreIndex, SimpleVetorIndex getting same error here also
r
L
P
3 comments
This is typically due to one of the following reasons:

  1. The SSL certificate of the server you're trying to connect to is not trusted by your system. This could be because the certificate is self-signed, the certificate authority that issued the certificate is not trusted, or the server setup is incorrect.
  1. Your system doesn't have the necessary certificates to trust the server's SSL certificate. This is common on systems where the certificate store isn't regularly updated.
  1. There's an issue with your Python installation's SSL module. This is common if you're using an older version of Python or if Python was compiled without SSL support.
To resolve this issue, you can try the following:

  1. Update your system's certificate store. This process varies depending on your operating system.
  1. If you're using a Python version installed via a package manager like conda, try creating a new environment with a fresh Python installation and see if the issue persists.
  1. If you're trying to connect to a server with a self-signed certificate, you might need to add that certificate to your system's trusted certificates store.
  1. If none of the above solutions work, maybe @Logan M or @WhiteFang_Jr can help?
I also typically see this when using a VPN
Thanks bro will try the following things
Add a reply
Sign up and join the conversation on Discord