Cannot find the host: controller.your_env.pinecone.io

I’m getting the following error while trying to get started with pinecone after running:

pinecone.list_indexes()

WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbca2d514f0>: Failed to establish a new connection: [Errno -2] Name or service not known’)‘: /databases
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbca2d51040>: Failed to establish a new connection: [Errno -2] Name or service not known’)‘: /databases
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7fbca2e8cdc0>: Failed to establish a new connection: [Errno -2] Name or service not known’)': /databases

gaierror Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/urllib3/connection.py in _new_conn(self)
173 try:
→ 174 conn = connection.create_connection(
175 (self._dns_host, self.port), self.timeout, **extra_kw

24 frames
gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

NewConnectionError Traceback (most recent call last)
NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fbca2e8ceb0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

MaxRetryError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
590
591 if new_retry.is_exhausted():
→ 592 raise MaxRetryError(_pool, url, error or ResponseError(cause))
593
594 log.debug(“Incremented Retry for (url=‘%s’): %r”, url, new_retry)

MaxRetryError: HTTPSConnectionPool(host=‘controller.your_env.pinecone.io’, port=443): Max retries exceeded with url: /databases (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fbca2e8ceb0>: Failed to establish a new connection: [Errno -2] Name or service not known’))

Any idea what’s going on here?

I have the same problem. Anyone know what’s happening here?

I got Pinecone setup finally. All I did was use the the API key and the environment name in the text file where it says “ENTER PINECONE API”. That together with the OpenAI API allowed me to get Auto-GPT off the ground. Hope that helps!

Be sure you update the environment value. In my case it was:

environment=“us-west4-gcp”

I was facing the same issue but got resolved by upgrading the pinecone-client:
pip install pinecone-client --upgrade