# Error while upserting vectors in Pinecone

**URL:** <https://community.pinecone.io/t/error-while-upserting-vectors-in-pinecone/6459>\
**Category:** Support\
**Tags:** vector-database\
**Created:** [August 27, 2024, 3:19pm UTC](https://community.pinecone.io/t/error-while-upserting-vectors-in-pinecone/6459 "2024-08-27T15:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.alhat](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vivek.alhat](https://community.pinecone.io/u/vivek.alhat)\
**Post date:** [August 27, 2024, 3:19pm UTC](https://community.pinecone.io/t/error-while-upserting-vectors-in-pinecone/6459/1 "2024-08-27T15:19:24Z")

</div>

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:

```auto
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:

```auto
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!

---

<div class="post-metadata">

**Author:** ![ZacharyProser](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/zacharyproser/32/1146_2.png) [@ZacharyProser](https://community.pinecone.io/u/ZacharyProser)\
**Post date:** [August 28, 2024, 3:52pm UTC](https://community.pinecone.io/t/error-while-upserting-vectors-in-pinecone/6459/2 "2024-08-28T15:52:58Z")

</div>

Hi @vivek.alhat , and thanks for your question!

That version of the Pinecone SDK is quite out of date - [the latest](https://www.npmjs.com/package/@pinecone-database/pinecone) is currently 3.0.2.

Could you try updating your client and see if that makes a difference?

Best,  
Zack
