pinecone-io / pinecone-ts-client

The official TypeScript/Node client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
166 stars 36 forks source link

[Bug] PineconeInternalServerError while trying to access upsert #211

Open craigloewen-msft opened 3 months ago

craigloewen-msft commented 3 months ago

Is this a new bug?

Current Behavior

Trying to call the 'upsert' code to upsert a new embedding into Pinecone but it's failing.

Ther error being seen is:

PineconeInternalServerError: An internal server error occured while calling the REDACTED-starter.pinecone.io/vectors/upsert endpoint. To see overall service health and learn whether this seems like a large-scale problem or one specific to your request, please go to https://status.pinecone.io/ to view our status page. If you believe the error reflects a problem with this client, please file a bug report in the github issue tracker at https://github.com/pinecone-io/pinecone-ts-client\n    at mapHttpStatusError (/workspace/node_modules/@pinecone-database/pinecone/dist/errors/http.js:187:20)\n    at /workspace/node_modules/@pinecone-database/pinecone/dist/errors/handling.js:65:69\n    at step (/workspace/node_modules/@pinecone-database/pinecone/dist/errors/handling.js:33:23)\n    at Object.next (/workspace/node_modules/@pinecone-database/pinecone/dist/errors/handling.js:14:53)\n    at fulfilled (/workspace/node_modules/@pinecone-database/pinecone/dist/errors/handling.js:5:58)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

It seems like a production or client issue, but the production tracker link shows green.

And here is the line where we are calling it: https://github.com/craigloewen-msft/GitGudIssues/blob/d4c44bc08600b638b047c2bd377b81441146d745/backendsrc/embeddingsHandler.js#L50

Expected Behavior

The upsert request should behave as it did before. We didn't make any code changes from this working to failing, so it seems like a server issue.

Steps To Reproduce

  1. Make a pinecone index
  2. Call upsert into it.

Relevant log output

No response

Environment

- **OS**: Ubuntu 20.04
- **Language version**: Node.JS v18
- **Pinecone client version**: "@pinecone-database/pinecone": "^1.1.2",

Additional Context

No response

craigloewen-msft commented 3 months ago

@plante-msft for visibility