Describe the problem/error/question
When using a modified version of this flow: Chat with OpenAI Assistant (by adding a memory) | n8n workflow template
and embedding the chat trigger in a website. The OpenAI assistant is perfectly usable and has memory, but when the webpage is refreshed or a new page is loaded and the embed chat widget tries to retrieve past messages from ‘Window Buffer Memory’ is errors out.
What is the error message (if any)?
Error in sub-node ‘Window Buffer Memory’
Information on your n8n setup
Node type
@n8n/n8n-nodes-langchain.memoryBufferWindow
Node version
1.1 (Latest version: 1.2)
n8n version
1.42.1 (Cloud)
Time
6/3/2024, 10:48:09 PM
Stack trace
NodeOperationError: Error in sub-node Window Buffer Memory at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1759:19 at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at Object.getInputConnectionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:1766:19) at Object.getInputConnectionData (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:2507:24) at Object.webhook (/usr/local/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js:369:33) at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:665:15) at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:226:33)