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)

Most upvoted comments

I haven’t been able to get this going. I have increased the dimension to 1536 (to match OpenAPI limits) and have experimented modifying the chunk and overlap size but to no avail. I keep getting this error. Any ideas? @mayooear I’m actually running into this issue following your tutorial.

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.