pinecone-io / pinecone-ts-client

The official TypeScript/Node client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
182 stars 38 forks source link

[Bug] Can't initialize client on nodejs #217

Closed Ilikepizza2 closed 1 week ago

Ilikepizza2 commented 4 months ago

Is this a new 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.

image image

Expected Behavior

The client should be initialized properly

Steps To Reproduce

  1. Put api key in .env
  2. 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

```markdown
- **OS**: Linux Mint
- **Language version**: v21.6.1
- **Pinecone client version**: v2.2.1

Additional Context

No response

anawishnoff commented 2 months ago

Hey @Ilikepizza2 , are you still facing this issue? Apologies for the delayed response to your issue.