Error RAG + Pinecone


"Hello, I’m trying to build a RAG with my own documents. I have everything properly configured with Pinecone. When uploading documents from the web (everything is connected with Webhooks), everything uploads without problems, and vectorizes correctly.

Then through another webhook, I start the chat, and I ask questions about that document I just uploaded, but it’s never able to talk to me about that file, and I get errors.

Describe the problem/error/question

What is the error message (if any)?

{
  "errorMessage": "Cannot read properties of undefined (reading 'replace')",
  "errorDescription": "Cannot read properties of undefined (reading 'replace')",
  "errorDetails": {},
  "n8nDetails": {
    "time": "12/11/2025, 11:25:34",
    "n8nVersion": "1.117.3 (Cloud)",
    "binaryDataMode": "filesystem"
  }
}

This is the error message I always get when I try to ask questions about uploaded documents

Please share your workflow

I'm attaching two images, one more general and another more specific of the error. I use one branch to upload the documents, the other for the chat itself


Information on your n8n setup

  • n8n version: 1.117.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Window 11

Hey, could you share the error message or your workflow?