Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] <title>PineconeNotFoundError: A call to https://api.pinecone.io/indexes/pinecone-vercel-starter returned HTTP status 404 #15

Open
2 tasks done
samswen opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@samswen
Copy link

samswen commented Feb 2, 2024

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

I just cloned the repo and set up .env

OPENAI_API_KEY=sk-...

Retrieve the following from the Pinecone Console.

Navigate to API Keys under your Project to retrieve the API key and environment

PINECONE_API_KEY=17...
PINECONE_REGION=us-west-2
PINECONE_CLOUD=aws

Navigate to Indexes under your Project to retrieve the Index name

PINECONE_INDEX=pinecone-vercel-starter

The index is newly created with serverless. Looks like the API endpoint is not the same provided by the index

https://pinecone-vercel-starter...pinecone.io

Can we use serverless indexes now?

Expected Behavior

should work

Steps To Reproduce

  1. git clone https://github.com/pinecone-io/pinecone-rag-demo.git

  2. cd pinecone-rag-demo

  3. npm install

  4. set up .env file with a serverless index name

OPENAI_API_KEY=sk-...

Retrieve the following from the Pinecone Console.

Navigate to API Keys under your Project to retrieve the API key and environment

PINECONE_API_KEY=17...
PINECONE_REGION=us-west-2
PINECONE_CLOUD=aws

  1. npm run dev

  2. browser to http://localhost:3000

Relevant log output

> vercel-pinecone-template@0.1.0 dev
> next dev

   ▲ Next.js 14.0.4
   - Local:        http://localhost:3000
   - Environments: .env

 ✓ Ready in 989ms
 ✓ Compiled /src/middleware in 145ms (64 modules)
 ○ Compiling / ...
 ✓ Compiled / in 6s (2847 modules)
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.
 ✓ Compiled /api/checkIndex in 118ms (1462 modules)
 ✓ Compiled (1651 modules)
 ⨯ PineconeNotFoundError: A call to https://api.pinecone.io/indexes/pinecone-vercel-starter returned HTTP status 404.
    at mapHttpStatusError (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/http.js:183:20)
    at eval (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:170:55)
    at step (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:107:23)
    at Object.eval [as next] (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:48:20)
    at fulfilled (webpack-internal:///(rsc)/./node_modules/@pinecone-database/pinecone/dist/errors/handling.js:11:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  cause: undefined
}

Environment

- **OS**: ubuntn 20.04
- **Language version**: node v20.11
- **Pinecone client version**:
    "@pinecone-database/doc-splitter": "^0.0.1",
    "@pinecone-database/pinecone": "2.0.0",

Additional Context

No response

@samswen samswen added the bug Something isn't working label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant