Error: Error getting Pinecone index: Failed to connect to Pinecone's controller on region us-west1-gcp. Please verify client configuration: API key, region and project_id. See more info: https://docs.pinecone.io/docs/quickstart#2-get-and-verify-your-pinecone-api-key
Underlying Error: error decoding response body: invalid type: null, expected a string at line 1 column 42
Was the Pinecone API updated in a non-backwards-compatible way?
I am seeing a similar issue in region us-east-1-aws:
File "/app/datastore/pinecone.py", line 25, in __init__
self._client = Client(api_key=self._api_key, region=self._region)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: `Failed to retrieve the user's project_id using `GET /actions/whoami`. Please verify the API key is correct`
We have tested multiple API keys with multiple instances in different projects. We are using pinecone-client = “3.0.0rc2”.
Just to be clear @arvid , are you using the latest version of that client? Should be 2.2.4.
@anita I’m not sure your error is related to what Arvid is reporting. Did this behavior just start for you, as well? And was your code working as-is previously?
@arvid and @anita, can you upgrade to the latest RC? It was just published yesterday but isn’t reflected in the install instructions in the Github repo. You can install with:
pip3 install pinecone-client==3.0.0rc3
RC2 is from last March and is pretty out of date. RC3 has a number of improvements over it.
@arvid sorry I’m not sure what you mean, RC3 of the client was published on PyPi last night and can be installed via pip. That’s the recommended way to install the Python client.
Would love some creative solution here! Maybe you could spin up a new version of the old deployment at a new URL, that we can point to? Our users cannot use a very popular feature after this change, and it will take us a while to refactor all of our code.
Just to follow up on this, @anita we found the underlying issue and have an immediate workaround you can use.
In your connect call, you want to add a third parameter: project_id. This is normally an optional parameter, but adding it means you don’t have to make the call to /actions/whoami, which is the part that’s failing here.
You can get your project ID from the console. Just click Settings->Projects, and copy the seven-character string for the project you’re working with.