how is this related to original post ?
Any Updates on this? It’s so annoying — don’t even know what I’m looking for.
Very annoing problem still present.
I can “resolve” only changing queue mode to “regular” disabling slaves…
I didn’t find a fix but found a work around for my use-case. I was receiving this error using n8n cloud when my workflow had a loop with a lot of referencing and steps inside the loop. I decided to make a new workflow with no loop and haven’t seen the error since.
This is a work around because running each execution seperately is more expensive and I still don’t know exactly what was causing the issue but Atleast my production workflow is working better now🤷
We have the same error
{
"errorMessage": "Cannot read properties of undefined (reading 'error')",
"errorDetails": {},
"n8nDetails": {
"n8nVersion": "1.102.4 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"TypeError: Cannot read properties of undefined (reading 'error')",
" at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_7e9d43189da28db518476f7779d5ed6f/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/OpenAi/actions/router.ts:65:64)",
" at processTicksAndRejections (node:internal/process/task_queues:105:5)",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_7e9d43189da28db518476f7779d5ed6f/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/OpenAi/OpenAi.node.ts:16:10)",
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2153:11"
]
}
}
The errors happened in an OpenAI Message a model node
