SSLCertVerificationError

Hello; trying to simply connect to the API by running the python-client on my local machine. I am able to do pinecone.list_indexes(). However when I try to run a upsert operation, I’m getting a SSLCertVerificationError

PINECONE_API_KEY = os.environ.get('PINECONE_API_KEY')
PINECONE_ENV = os.environ.get('PINECONE_ENVIRONMENT')

INDEX_NAME = 'personal_agent'

pinecone.init(
            api_key=PINECONE_API_KEY,
            environment=PINECONE_ENV
)
index = pinecone.Index(INDEX_NAME)

index.upsert(
            vectors=[
                (
                    str(uuid4()), # Vector ID
                    embed, # Dense vector
                    {'user':'test',
                     'text': 'Sample document text goes here'},
                )
            ]
        )

If this only happens on index-related methods than the issue is that personal_agent does not exist at that Key/Envrionment combination.

To test this idea further try to call describe_index on the index variable. If it fails you should make sure your index name is correct (and the index exists!)

Other ideas

  • Index should be under that specific environment
  • API key is correct
  • name is spelled in the same case and format as it is on Pinecone
  • Dimensions are setup properly for upserting
  • Index is in the ready state