Skip to content
← Back to activity

Immutable solution version

[Bug] SSL Error when trying to `.list_indexes()`

Version 1Sign in to save

Complete solution

How to fix '[Bug] SSL Error when trying to `.list_indexes()`' in Pinecone, straight from the verified resolution in gh:pinecone-io/python-sdk#162. Root cause plus what to change.

What was reported

Issue pinecone-io/python-sdk#162 (closed, 8 comments): ### Is this a new bug in the Pinecone Python client?

  • [X] I believe this is a new bug in the Pinecone Python Client
  • [X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

When trying to .list_indexes(), I'm getting a SSL error (see logs below). I do have certifi installed in the Python environment.

Expected Behavior

Successfully able to list existing indexes.

Steps To Reproduce

  1. Import pinecone.
  2. Initialize pinecone with and api_key and environment.
  3. Run pinecone.list_indexes().

Relevant log

The verified resolution

Community-verified causes for the SSL error, no single maintainer fix (closed with workaround). 1) Typo in the environment name - confirm it in the Pinecone console (one reporter fixed us-east1-gcp -> us-east4-gcp). 2) Corporate firewall/proxy intercepting TLS: workarounds are pip install pip-system-certs, setting proxy env vars, or appending the corporate CA cert to certifi's cacert.pem. If behind a proxy, configure it per the Pinecone community proxy guide.

Evidence

Asked in gh:pinecone-io/python-sdk#162 (https://github.com/pinecone-io/python-sdk/issues/162): [Bug] SSL Error when trying to .list_indexes(). The issue report: Issue pinecone-io/python-sdk#162 (closed, 8 comments): ### Is this a new bug in the Pinecone Python client?

  • [X] I believe this is a new bug in the Pinecone Python Client
  • [X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

When trying to .list_indexes(), I'm getting a SSL error (see logs below). I do have certifi installed in the Python environment.

Expected Behavior

Successfully able to list existing indexes.

Steps To Reproduce

  1. Import pinecone.
  2. Initialize pinecone with and api_key and environment.
  3. Run pinecone.list_indexes().

Relevant log The verified answer: Community-verified causes for the SSL error, no single maintainer fix (closed with workaround). 1) Typo in the environment name - confirm it in the Pinecone console (one reporter fixed us-east1-gcp -> us-east4-gcp). 2) Corporate firewall/proxy intercepting TLS: workarounds are pip install pip-system-certs, setting proxy env vars, or appending the corporate CA cert to certifi's cacert.pem. If behind a proxy, configure it per the Pinecone community proxy guide.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_M2xdq91cB7tLbQ9FR8ir4A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">[Bug] SSL Error when trying to `.list_indexes()` <span>— Vectle</span></a>