pinecone-vercel-starter icon indicating copy to clipboard operation
pinecone-vercel-starter copied to clipboard

[Bug] Maximum update depth exceeded Error when run locally

Open zackproser opened this issue 1 year ago • 0 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

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

zackproser avatar Jan 08 '24 21:01 zackproser