HTTPSConnectionPool(host='', port=443): Max retries exceeded with url

This is my first time using pinecone so I’m probably messing up something simple. But I keep getting the error:

MaxRetryError: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /indexes/sample-movies (Caused by SSLError(SSLEOFError(8, ‘[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)’)))

when trying to run:

from pinecone import Pinecone
pc = Pinecone(api_key=“…”)
index = pc.Index(“sample-movies”)

where I created the sample-movies index through the website and am using my api key. I can’t figure out how to resolve the error.