Error testing Namespace-Notes example

I followed the namespace-notes tutorial and was able to get it running successfully. When trying to chat with documents, I get the following error. Any suggestions to troubleshoot/resolve?

 ○ Compiling /workspace/[slug] ...
 ✓ Compiled /workspace/[slug] in 741ms (2297 modules)
GET request to fetch files for namespace: 2412fc37-b6a4-448e-9395-7a33481e9c77
Files fetched successfully:  [{"documentId":"9ee8096c-2703-4c81-88f7-9912ab3ccc52","name":"Guidance-Computer-Software-Assurance.pdf","url":"http://localhost:4001/api/documents/files/2412fc37-b6a4-448e-9395-7a33481e9c77/9ee8096c-2703-4c81-88f7-9912ab3ccc52/Guidance-Computer-Software-Assurance.pdf"}]
GET request to fetch files for namespace: 2412fc37-b6a4-448e-9395-7a33481e9c77
Files fetched successfully:  [{"documentId":"9ee8096c-2703-4c81-88f7-9912ab3ccc52","name":"Guidance-Computer-Software-Assurance.pdf","url":"http://localhost:4001/api/documents/files/2412fc37-b6a4-448e-9395-7a33481e9c77/9ee8096c-2703-4c81-88f7-9912ab3ccc52/Guidance-Computer-Software-Assurance.pdf"}]
 ○ Compiling /api/chat ...
 ✓ Compiled /api/chat in 510ms (178 modules)
 ⨯ node_modules/@ai-sdk/provider-utils/dist/index.mjs (210:0) @ postToApi
 ⨯ Failed to process error response
null

Hi @adam3, happy to help you troubleshoot. Some quick questions for context here:

  • Did you use the npx create-pinecone-app command to adopt the app?

  • Have you added your Open AI key to the client .env file (and does your Open AI account have credit available to use)?

  • Did you use the npx create-pinecone-app command to adopt the app? - Yes
  • Have you added your Open AI key to the client .env file (and does your Open AI account have credit available to use)? - Yes

What node / npm versions are you using? I’ve been unable to reproduce so far.

Also try rerunning npx create-pinecone-app - we made some updates to the package and demo code today and I’m curious to see if this issue persists for you.