Memory Internal Error running AI Agent

Describe the problem/error/question

When i test module or test the workflow i get an internal error

What is the error message (if any)?

{
“errorMessage”: “Internal error”,
“errorDescription”: “Internal error”,
“errorDetails”: {},
“n8nDetails”: {
“time”: “27/07/2024, 11:31:38”,
“n8nVersion”: “1.51.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“cause”: {}
}
}

Please share your workflow

Information on your n8n setup

  • **n8n version: 1.51.1 (Self Hosted)
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, p):
  • **Operating system:Ubuntu

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Debug info

core

  • n8nVersion: 1.51.1
  • platform: npm
  • nodeJsVersion: 18.20.4
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: community
  • consumerId: unknown

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

Generated at: 2024-07-27T11:02:05.297Z

NodeOperationError: Internal error at BufferWindowMemory.callMethodAsync (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/utils/logWrapper.ts:51:17) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Proxy. (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/utils/logWrapper.ts:160:25) at AgentExecutor.invoke (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/node_modules/langchain/dist/chains/base.cjs:74:13) at Object.conversationalAgentExecute (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/nodes/agents/Agent/agents/ConversationalAgent/execute.ts:105:19) at Object.execute (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/@n8n/n8n-nodes-langchain/nodes/agents/Agent/Agent.node.ts:378:11) at Workflow.runNode (/root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1382:8) at /root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1072:27 at /root/.nvm/versions/node/v18.20.4/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1775:11

Hi @MM_MM

Thanks for posting here and welcome to the community! :cake:

I think it’s because you’re using an expression without having the expression mode turned on.

image

Could you give that a try?

1 Like

Thanks, i had a blank value in a field being processed. Added an error trap and fixed it :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.