pinecone-ts-client
pinecone-ts-client copied to clipboard
[Bug] Can't initialize client on nodejs
Is this a new bug?
- [X] I believe this is a new bug
- [X] I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
In nodejs, even when initilizing client I get a timeout error indicating service is down. However I can very well access it from the frontend, using curl, or the python client. I've made sure that it can read the api key in the env. I had used the same code before and it was working.
Expected Behavior
The client should be initialized properly
Steps To Reproduce
- Put api key in .env
- Here's my code ->
const { Pinecone } = require('@pinecone-database/pinecone');
require("dotenv").config();
const f = async () => {
try {
const pc = new Pinecone();
console.log(await pc.listIndexes());
} catch (e) {
console.log("error", e);
}
}
f();
Relevant log output
No response
Environment
- **OS**: Linux Mint
- **Language version**: v21.6.1
- **Pinecone client version**: v2.2.1
Additional Context
No response
Hey @Ilikepizza2 , are you still facing this issue? Apologies for the delayed response to your issue.