pinecone-io / pinecone-vercel-starter

Pinecone + Vercel AI SDK Starter
https://pinecone-vercel-example.vercel.app
418 stars 127 forks source link

[Bug] Maximum update depth exceeded Error when run locally #36

Open zackproser opened 8 months ago

zackproser commented 8 months ago

Is this a new bug?

Current Behavior

When running locally, after setting all required environment variables and choosing to embed / upsert the Malaysian Deforestation link, the app workflow proceeds as expected, and I get the expected RAG and Non-RAG output, but I also get the following error:

Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

pinecone-vercel-starter-local-error

pinecone-vercel-starter-local-error-text

Expected Behavior

The example should run end to end without issues.

Steps To Reproduce

  1. Clone repository locally and cd into it
  2. npm i
  3. Set PINECONE_API_KEY, PINECONE_ENVIRONMENT, PINECONE_INDEX and OPENAI_API_KEY environment variables
  4. npm run dev

Relevant log output

No response

Environment

- **OS**:
- **Language version**:
- **Pinecone client version**:

Additional Context

No response