Hi,
I’m encountering a frustrating issue where my workflow executes perfectly in Test mode but consistently fails in Production mode with the following error:
Cannot read properties of undefined (reading 'execute')
Environment Details:
- n8n version: 1.98.1 (Self Hosted)
- Key nodes used: HTTP Request, Information Extractor, AI Agent, MCP Client Tool, Code nodes
- LangChain nodes: Several OpenRouter Chat Model nodes and information extractors
The Problem:
My workflow scrapes data, processes it with AI, and returns results. The strange part is that it runs flawlessly when testing individual nodes or parts of the workflow, but fails when running in production mode.
What I’ve Tried:
- Verified all credentials are valid
- Confirmed external services are accessible (ngrok endpoints)
- Added error handling to critical nodes
- Simplified parts of the workflow
Observations:
- No specific node is identified in the error message
- The error occurs consistently in production but never in test mode
- The error appears related to node initialization/execution rather than data processing
Questions:
- What are the key differences between Test and Production mode that could cause this?
- Are there known issues with certain node types (particularly LangChain/AI nodes) in production?
- Could node references (like
$('Webhook').first()
) be causing issues in production context? - Are there recommended debugging approaches for production-only errors?
Any insights or suggestions would be greatly appreciated. I’m happy to provide additional details if needed.
Thank you!