Hi, I am facing an issue while upserting vectors into Pinecone. My index is in free tier and in gcp-starter
environment. I am seeing below error in logs:
Error: An internal server error occured while calling the https://indexname.svc.gcp-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
Below is the code I am using for upserting vectors:
await index
.namespace(namespace)
.upsert(pineconeBatch) // array of vector objects
.then(() =>
console.log(
`Upserted vectors in Pinecone index`
)
)
.catch((e) => {
throw new Error((e as Error).message);
});
However this issue is very random in logs, for some data it upserts everything correctly but for some data it gives this error. It is highly likely that the same data will get upserted correctly next time as well.
If I make an API request from Postman to upsert endpoint with the same data for which it failed from app then also it works correctly and data is successfully upserted into the index.
I also checked the Pinecone status page and it is showing everything is working correctly.
I am using @pinecone-database/pinecone
client ^1.1.2
version.
Any help is highly appreciated!