Closed bitterspeed closed 1 month ago
Thank you for bringing this to our attention. I can confirm we have reproduced the issue.
I also have a workaround if you call describeIndex
it will work.
#!/usr/bin/node
import { Pinecone } from '@pinecone-database/pinecone';
const pcOne = new Pinecone({ apiKey: 'XXXX' });
const test = pcOne.Index('test');
const pcTwo = new Pinecone({ apiKey: 'XXXX' });
const test2 = pcTwo.Index('test2');
console.log(await pcTwo.describeIndex('test2'));
console.log(await test2.describeIndexStats());
console.log(await pcOne.describeIndex('test'));
console.log(await test.describeIndexStats());
Thanks again for reporting, and thank you @mcpaddy for the workaround which was helpful for debugging. 🙂
I have a fix up here that I'd like to get merged and released quickly: https://github.com/pinecone-io/pinecone-ts-client/pull/224
Release v2.2.2
includes a fix for this issue. Thanks again for contributing!
https://github.com/pinecone-io/pinecone-ts-client/releases/tag/v2.2.2
Is this a new bug?
Current Behavior
If you run the code below to
describeIndexStats
in either order, the first call always works but the second call results in a not found error.Expected Behavior
I should be able to connect to 2 different pinecone instances
Steps To Reproduce
Run the code above
Relevant log output
No response
Environment
Additional Context
No response