PineconeGRPC ssl_verify=False not working

Hi Pinecone team,

I have a question about PineconeGRPC and ssl.

from pinecone.grpc import PineconeGRPC as Pinecone

project_name = "XXX"

index_name = "XXX"

pc = Pinecone(api_key="XXX", ssl_verify=False)

host="XXX"

index = pc.Index(host=host)

print(index.describe_index_stats())

Even with ssl_verify=False, it still gives a certificate verify failed error.

E0000 00:00:1727811111.985333 4122222 ssl_transport_security.cc:1654] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED

I’m wondering what the possible cause of that is. Thanks!

The ssl_verify param you pass into the Pinecone constructor is being applied only to REST calls to the control plane, e.g. calls from describe_index, create_index, etc. The GRPC calls between the SDK and the index host, including describe_index_stats(), are controlled by a different config object.

Can you try something like this:

from pinecone.grpc import PineconeGRPC as Pinecone, GRPCClientConfig

pc = Pinecone(api_key="XXX", ssl_verify=False)
grpc_config = GRPCClientConfig(secure=False)

index = pc.Index(host="YYY", grpc_config=grpc_config)

print(index.describe_index_stats())