pinecone-ts-client icon indicating copy to clipboard operation
pinecone-ts-client copied to clipboard

[Bug] Can't initialize client on nodejs

Open Ilikepizza2 opened this issue 1 year ago • 1 comments

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.

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

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

Additional Context

No response

Ilikepizza2 avatar May 19 '24 09:05 Ilikepizza2

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

anawishnoff avatar Aug 06 '24 14:08 anawishnoff