Troubleshooting Guide¶
Solutions to common AEL issues.
Installation Issues¶
Command Not Found¶
Solutions:
1. Ensure AEL is installed: pip install ael
2. Check PATH includes pip bin directory
3. Try: python -m ael --version
Import Errors¶
Solutions:
1. Verify installation: pip show ael
2. Check Python version (requires 3.11+)
3. Reinstall: pip install --force-reinstall ael
Configuration Issues¶
Config File Not Found¶
Solutions:
1. Create config: ael config show > ael-config.yaml
2. Specify path: ael --config /path/to/config.yaml
3. Check current directory for ael-config.yaml
Invalid Configuration¶
Solutions:
1. Validate YAML syntax
2. Check required fields
3. View current config: ael config show
4. See Configuration Reference
Workflow Issues¶
Workflow Not Found¶
Solutions:
1. List workflows: ael workflows list
2. Check workflows directory in config
3. Verify file exists and has .yaml extension
4. Check workflow name field matches
Validation Errors¶
Solutions:
1. Validate workflow: ael validate workflow.yaml
2. Check required fields: name, version, steps
3. Verify step IDs are unique
4. Check depends_on references valid steps
Circular Dependency¶
Solutions:
1. Review depends_on relationships
2. Draw dependency graph
3. Remove circular references
4. Use sequential steps without depends_on
Tool Issues¶
Tool Unavailable¶
Solutions:
1. List tools: ael tools list
2. Check MCP server is configured
3. Refresh tools: ael tools refresh
4. Verify MCP server is running
MCP Connection Failed¶
Solutions:
1. Check server command: npx -y @package/server
2. Verify package is installed
3. Check environment variables
4. Review server logs
Tool Timeout¶
Solutions: 1. Increase step timeout:
2. Check tool is not stuck 3. Verify network connectivityCode Step Issues¶
Syntax Error¶
Solutions: 1. Check Python syntax 2. Verify indentation (use spaces, not tabs) 3. Test code locally first 4. Check for unclosed brackets/quotes
Security Violation¶
Solutions: 1. Remove forbidden imports (os, sys, subprocess) 2. Don't use eval(), exec(), open() 3. See Code Steps Guide for allowed imports
Import Not Allowed¶
Solutions: 1. Use allowed imports only (json, re, datetime, etc.) 2. Use tool steps for HTTP requests 3. See Code Steps Guide
Result Not Set¶
Solutions:
1. Ensure code sets result:
Execution Issues¶
Workflow Timeout¶
Solutions: 1. Increase workflow timeout in config 2. Optimize slow steps 3. Check for stuck tools 4. Break into smaller workflows
Template Error¶
Solutions:
1. Check Jinja2 syntax: {{ variable }}
2. Verify variable names exist
3. Check for typos in step/input names
4. Use | default('value') for optional values
Server Issues¶
Port Already in Use¶
Solutions:
1. Use different port: ael serve --port 8081
2. Find process: lsof -i :8080
3. Kill process: kill -9 <PID>
API Authentication Failed¶
Solutions:
1. Check API key is configured
2. Verify key in request header
3. Check security config in ael-config.yaml
Getting Help¶
Debug Logging¶
Enable debug logs:
Or in config:
Check Version¶
Report Issues¶
- Gather logs with DEBUG level
- Include workflow YAML (redact secrets)
- Include error message
- Open issue on GitHub