But I can’t get through the first step given the following error:
UnauthorizedException: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({‘www-authenticate’: ‘API key is missing or invalid for the environment “us-west1-gcp”. Check that the correct environment is specified.’, ‘content-length’: ‘114’, ‘date’: ‘Tue, 31 Jan 2023 12:37:56 GMT’, ‘server’: ‘envoy’})
HTTP response body: API key is missing or invalid for the environment “us-west1-gcp”. Check that the correct environment is specified.
For the following code block:
document_store = PineconeDocumentStore(
api_key=‘my api key’,
index=‘haystack-extractive-qa’,
similarity=“cosine”,
embedding_dim=384
)
I’ve used my API key in other projects without an issue, and to my understanding have all the other proper packages installed.
I’ve tried this with multiple API keys (>12 hours apart), and even created a new account to try a fresh API key. Does anyone know what the issue can be?
Sorry, new here. Is this in Pinecone? Or VSC? I am getting the error " FAILED TO CONNECT TO PINECONE (‘401 Client Error: Unauthorized for url: https://controller.asia-northeast1-gcp.pinecone.io/actions/whoami’, ‘API key is missing or invalid for the environment “asia-northeast1-gcp”. Check that the correct environment is specified.’)"
I have the same problem. Environment is auto set at asia-northeast1-gcp when I create my key yet I get the following error:
UnauthorizedException: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({‘www-authenticate’: ‘API key is missing or invalid for the environment “asia-northeast1-gcp”. Check that the correct environment is specified.’, ‘content-length’: ‘121’, ‘date’: ‘Sun, 23 Apr 2023 05:29:37 GMT’, ‘server’: ‘envoy’})
HTTP response body: API key is missing or invalid for the environment “asia-northeast1-gcp”. Check that the correct environment is specified.
this is the code Im using:
# install initialize and store vectors in Pinecone
import pinecone
index_name = 'nameofmyindex'
pinecone.init(
api_key="<<my key here>>",
environment = "asia-northeast1-gcp"
)
if index_name not in pinecone.list_indexes():
pinecone.create_index(index_name, dimension=len(embeds[0]))
# connect to index
index = pinecone.Index(index_name)
We’re having a problem with API keys in asia-northeast1-gcp. For the time being, please create a new project in a different region to set up your index.
Hi Alex, I found how to do it. Go to Organization > projects > create project. Also, I have removed the default project to do not have issues with asia-northeast1-gcp project.
That fixed the issue. Now, everything is working find.
I went to delete my index in asia-northeast1-gcp, and now I have just spinning circle… I can’t create new project because default project exist, and I can’t delete project because index “exists”, and I can’t delete index because the UI is broken
This worked for me. But when I started to run Auto GPT it says “Using memory of type: LocalCache” is this correct? Or should it say Pinecone? I changed the Memory Backend to Pinecone in my VSC .env section
Note that the environment actually is us-west4-gcp despite the error msg saying us-west1-gcp, This is a free account and I can create an index in it with the pinecone browser console.