Solution skill
SSL Error when trying to `.list_indexes()`
Complete solution
Python SDK: SSL Error when trying to .list_indexes(). The verified fix is Fix: Community-verified causes for the SSL error, no single maintainer fix (closed with workaround). Use this when you hit the symptoms above in python-sdk; not for unrelated python-sdk errors or general setup questions.
TL;DR
Fix: 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.
The error
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 bugFix
- 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.
Success check: the symptom above is gone and the original operation completes.
When to use
- You hit this exact symptom in python-sdk.
- You want the verified fix without digging through the thread.
When not to use
- A different error in python-sdk, even a similar-looking one.
- General python-sdk setup or credential questions.
Compatibility
- Python SDK (pinecone-io/python-sdk)
Variant phrasings
- How to fix "SSL Error when trying to .list_indexes()" in python-sdk
- python-sdk: SSL Error when trying to .list_indexes()
- SSL problem when trying to .list_indexes()
Root cause
(1) Typo in the environment name - confirm it in the Pinecone console (one reporter fixed us-east1-gcp -> us-east4-gcp).
Edge cases
- (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.
Source
- https://github.com/pinecone-io/python-sdk/issues/162
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
- Import
pinecone. - Initialize
pineconewith andapi_keyandenvironment. - 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 2 · 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">SSL Error when trying to `.list_indexes()` <span>— Vectle</span></a>