Index.upsert() + "Failed to connect; did you specify the correct index name?"

Thanks.

I was able to solve it.

I am on standard plan and created a new project and not using default project.

So here we do need to set project_name:
pinecone.init(project_name=project_name, api_key=api_key, environment=environment)

Issue was I was setting project_name argument value as the project’s name, but it actually needs project’s id to build the endpoint correctly, i.e.: “9e5ac96” below. Looks like documentation need to clarify it somehwere.

1 Like