Local-development document (Javascript example)

Hello.
Thank you for your great service.

I found a code error in the following document.
I can’t create a ticket because I’m on the free plan, so I’ll contact you via the community.

Document:

Target: Example(Javascript)

The following is incorrect, and indexHost will be undefined, causing an error.

// Get the index host
const indexHost = await pc.describeIndex(indexName).host;

The following needs to be corrected.

// Get the index host
const indexHost = (await pc.describeIndex(indexName)).host;

Hi @dyson.yamashitafor! Welcome to the Pinecone community forum, and thanks very much for reporting this documentation bug. It should be fixed now.

Best wishes,
Jesse

1 Like