pinecone-ts-client: PineconeClient: Error calling upsert
The error below occurs whenever index.upsert
is run, even using the example provided in the doc.
code:
const upsertResponse = await index.upsert({
upsertRequest: {
vectors: [
{
id: "vec1",
values: [0.1, 0.2, 0.3, 0.4],
metadata: {
genre: "drama",
},
},
{
id: "vec2",
values: [0.1, 0.2, 0.3, 0.4],
metadata: {
genre: "comedy",
},
},
],
namespace: "example-namespace",
},
});
Error log:
PineconeClient: Error calling upsert: PineconeClient: Error calling upsertRaw: ResponseError: Response returned an error code econeClient: Error calling upsertRaw: ResponseError: Response returned an error code
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (3 by maintainers)
I was able to resolve this issue by deleting the project and re-creating it in different region (Canada). You will also need to retrieve a new API key when doing this.
The initial region that was causing issues was Asia.