Problem

When trying to access a serverless index via the API, you are getting an error that looks like
"whoami" controller is not reachable:
<https://controller.us-west-2-aws.pinecone.io/actions/whoami>
or
Failed to resolve 'controller.us-east-1-aws.pinecone.io'
([Errno -2] Name or service not known)"))

Solution

This error occurs because an outdated version of the Pinecone SDK is being used. Upgrading to the latest version will resolve the issue:
pip install pinecone-client --upgrade