"errorMessage": "Cannot read properties of undefined (reading 'error')",

Hello,

I sporadically receive an error message and can’t explain it. Sometimes it works. But more often than not, this message appears. Can you help me?
I tried to create a new workflow, but the error message still appears.

{
“errorMessage”: “Cannot read properties of undefined (reading ‘error’)”,
“errorDetails”: {},
“n8nDetails”: {
“n8nVersion”: “1.102.4 (Cloud)”,
“binaryDataMode”: “filesystem”,
“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"

]

}

}


Hi @iwan1, welcome to community!
I think it’s because your OpenAI plan is still in free plan, and you need to upgrade to pay-as-you-go plan with adding your card to OpenAI Platform.
Hope it helps.

Hey, Cutecatcode.
why you think like that?
since yesterday more peolple have problem like that. There are other threads like my one.

Some of user are helped when they are upgrading the plan, some of user don’t.
I think that’s a bug.

same problem with pay account

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