Describe the problem/error/question
I have a SQL agent connected to a MySQL database. Before the latest version (1.75.2) this worked fine. Now I get the error
“Cannot read properties of undefined (reading ‘text’)” in my code node.
Was there a problem in version 1.75.2?
What is the error message (if any)?
Cannot read properties of undefined (reading ‘text’)
Error details:
{
"errorMessage": "Cannot read properties of undefined (reading 'text')",
"errorDetails": {},
"n8nDetails": {
"nodeName": "AI Agent1",
"nodeType": "@n8n/n8n-nodes-langchain.agent",
"nodeVersion": 1.7,
"itemIndex": 0,
"time": "1/28/2025, 8:23:42 AM",
"n8nVersion": "1.75.2 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"NodeOperationError: Cannot read properties of undefined (reading 'text')",
" at ExecuteContext.sqlAgentAgentExecute (C:\\Users\\Mario\\AppData\\Local\\npm-cache\\_npx\\a8a7eec953f1f314\\node_modules\\@n8n\\n8n-nodes-langchain\\nodes\\agents\\Agent\\agents\\SqlAgent\\execute.ts:139:12)",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at ExecuteContext.execute (C:\\Users\\Mario\\AppData\\Local\\npm-cache\\_npx\\a8a7eec953f1f314\\node_modules\\@n8n\\n8n-nodes-langchain\\nodes\\agents\\Agent\\Agent.node.ts:432:11)",
" at WorkflowExecute.runNode (C:\\Users\\Mario\\AppData\\Local\\npm-cache\\_npx\\a8a7eec953f1f314\\node_modules\\n8n-core\\src\\WorkflowExecute.ts:1096:8)",
" at C:\\Users\\Mario\\AppData\\Local\\npm-cache\\_npx\\a8a7eec953f1f314\\node_modules\\n8n-core\\src\\WorkflowExecute.ts:1504:27",
" at C:\\Users\\Mario\\AppData\\Local\\npm-cache\\_npx\\a8a7eec953f1f314\\node_modules\\n8n-core\\src\\WorkflowExecute.ts:2065:11"
]
}
}
Please share your workflow
Share the output returned by the last node
[
{
"sessionId": "ba8216ed7c01441098f8d82eebf938fd",
"action": "sendMessage",
"chatInput": "hola"
}
]
Information on your n8n setup
- n8n version: 1.75.2
- Database (default: SQLite): MySQL
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Windows 10 Pro