# Tuning pinecone error

**URL:** <https://community.pinecone.io/t/tuning-pinecone-error/1965>\
**Category:** Support\
**Created:** [May 23, 2023, 2:03pm UTC](https://community.pinecone.io/t/tuning-pinecone-error/1965 "2023-05-23T14:03:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/matt/32/590_2.png) [@matt](https://community.pinecone.io/u/matt)\
**Post date:** [May 23, 2023, 2:03pm UTC](https://community.pinecone.io/t/tuning-pinecone-error/1965/1 "2023-05-23T14:03:58Z")

</div>

HI all!

I was trying to performance tune my project in Node 18 Cloud Function and am getting an error on configureIndex. I couldn’t find anything on Google or this forum related to the error:

**Failed to load function definition from source: FirebaseError: Failed to load function definition from source: Failed to generate manifest from function source: TypeError: pinecone.configureIndex is not a function**

```auto
const pinecone = new PineconeClient();
pinecone.configureIndex({
  indexName: PINECONE_INDEX,
  patchRequest: {
    replicas: 2,
    podType: "p1.x1",
  },
});

```

---

<div class="post-metadata">

**Author:** ![Cory\_Pinecone](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/cory_pinecone/32/1712_2.png) [@Cory\_Pinecone](https://community.pinecone.io/u/Cory_Pinecone)\
**Post date:** [May 23, 2023, 2:06pm UTC](https://community.pinecone.io/t/tuning-pinecone-error/1965/2 "2023-05-23T14:06:08Z")

</div>

Hi @matt, I think the method you’re looking for is [`configure_index`](https://docs.pinecone.io/docs/python-client#configure_index).

---

<div class="post-metadata">

**Author:** ![matt](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/matt/32/590_2.png) [@matt](https://community.pinecone.io/u/matt)\
**Post date:** [May 23, 2023, 2:15pm UTC](https://community.pinecone.io/t/tuning-pinecone-error/1965/3 "2023-05-23T14:15:46Z")

</div>

Hi Cory, thanks for the quick reply. I get this when I change it to `configure_index` 😅

**Property ‘configure\_index’ does not exist on type ‘PineconeClient’. Did you mean ‘configureIndex’?ts(2551)**
