urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pinecone.io', port=443):

This issue is marked resolved but the links to the “resolution” are dead links. I cannot get around this error message.

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.pinecone.io’, port=443): Max retries exceeded with url: /indexes (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)’)))

Hi @mamcafee1,

To help us debug what might be going wrong, please provide all your relevant code, including where you install the Pinecone library and let us know which version you’re currently running.

Please be careful not to include any secrets such as your Pinecone API key.

Best,
Zack

Hi, Zack.

It doesn’t matter what script I run, I’ve tried dozens of alternatives, the script isn’t the issue. I am not using a proxy. I have updated everything I can think of that relates to SSL and internet generally. I’ve upgraded every library I can think of that might be related to this or could help resolve the issue. Created fresh indexes and api keys. Searched Stack Overflow and did anything that could possibly help. Used your AI support agent. Installed in a virtual environment, installed in a conda environment. Yelled at ChatGPT to ‘get creative with your solutions, that didn’t work’. I set my DNS to Google’s DNS. There is nothing else I can think of that could resolve this.

from pinecone.grpc import PineconeGRPC as Pinecone
from pinecone import ServerlessSpec

pc = Pinecone(
    api_key="APIKEY"  # Replace with your actual Pinecone API key
)

index_name = "docs-quickstart-index"

if index_name not in pc.list_indexes().names():
    pc.create_index(
        name=index_name,
        dimension=1536,
        metric="cosine",
        spec=ServerlessSpec(
            cloud='aws',
            region='us-east-1'
        )
    )

print("Index setup complete")
File "...", line 519, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pinecone.io', port=443): Max retries exceeded with url: /indexes (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))```

Hi, Zack. Really need some help on this when you have a second. We’re mid-MVP and I can’t access Pinecone and no one on my team or the internet can figure out why. Thank you.

Hi @mamcafee1,

I’ve asked a colleague for help finding and restoring the original link from the thread you linked.

Could you please try adding a try/catch block around your upsert call to see if it happens with certain vectors that may be malformed?

Could you try creating a fresh project in your Google Cloud account and using the example code in our Quickstart?

If you are able to run that code successfully without issue, that might point to an issue with the vectors you’re attempting to upsert.

I appreciate that you’ve been trying exhaustively to solve the issue, but it’s still unclear to me:

  • What code you are running
  • What versions of which libraries you are running
  • What your data pre-processing looks like
  • How you are embedding your vectors and upserting them…etc

It would be helpful if you could provide all your code and a clear technical description of your exact goals / what you have running where.

Best,
Zack