Troubleshooting
Common Errors
API Key Not Defined
Solution: Create .env file with your API key:
# For Gemini
GEMINI_API_KEY=your_key_here
# For OpenAI
OPENAI_API_KEY=your_key_here
# For Claude
ANTHROPIC_API_KEY=your_key_here
Or set environment variable:
# Linux/macOS
export GEMINI_API_KEY=your_key_here
# Windows PowerShell
$env:GEMINI_API_KEY='your_key_here'
ModuleNotFoundError
Solution: Install dependencies:
Or reinstall:
Claude Code Not Found
Solution: Install Claude Code:
Verify:
GitHub CLI Not Authenticated
Solution:
# Install gh
brew install gh # macOS
sudo apt install gh # Ubuntu
winget install gh # Windows
# Authenticate
gh auth login
Slow Analysis
Solutions: 1. Reduce batch size:
2. Increase timeout: 3. Use faster model: 4. Enable caching:Logs Not Appearing
Solution: Check terminal UTF-8 support.
Windows:
API Rate Limits
Solutions: 1. Wait and retry (automatic with backoff) 2. Reduce BATCH_SIZE 3. Enable ENABLE_CACHE=true 4. Use Batch API: ENABLE_BATCH_MODE=true
Invalid API Key
Solutions: 1. Verify key is correct (no extra spaces) 2. Check API key permissions 3. Ensure billing is enabled (for paid models) 4. Try generating a new key
Large Files Timeout
Solution: Increase timeout:
Debug Mode
Enable verbose logging:
For Gemini thinking:
Agent Selection Issues (v2.10)
Unknown Agent Error
Solution: Use correct agent names:
# Core agents
aetheris analysis --agents code_analysis,architecture,security,metrics,vulnerability,qa
# Extended agents (v2.10)
aetheris analysis --agents type_safety,performance,api_contract,data_privacy
Compliance Framework Not Found
Solution: Use valid framework names:
Extended Agent Not Running
Extended agents require the corresponding enable flags:
ENABLE_TYPE_ANALYSIS=true
ENABLE_PERFORMANCE_ANALYSIS=true
ENABLE_API_CONTRACT_ANALYSIS=true
ENABLE_PRIVACY_ANALYSIS=true
Cache Issues
Force Re-analysis
Clear Cache
PR Review Issues
Can't Fetch PR
Check permissions:
Comments Not Posting
- Check
--dry-runis not set - Verify write permissions on repo
- Check if PR is open (not merged/closed)
Fix Command Issues
Parallel Mode Failures
Reduce batch size:
Retry Failed Bugs
Network Issues
Connection Timeout
Solutions: 1. Check internet connectivity 2. Verify firewall/proxy settings 3. Try a different network 4. Increase timeout: TIMEOUT_SECONDS=180
SSL Certificate Errors
Solutions: 1. Update Python certificates:
2. On macOS, run:Memory Issues
Out of Memory
Solutions: 1. Reduce batch size: BATCH_SIZE=3 2. Analyze smaller subsets with --files 3. Close other applications 4. Increase system swap/virtual memory
Platform-Specific
Windows Path Issues
Solution: Use forward slashes or raw strings:
macOS Gatekeeper
Solution: Allow in System Preferences > Security & Privacy
Linux Permission Denied
Solution:
Diagnostic Commands
# Check installation
aetheris --version
# Verify Python version
python --version
# Test API connectivity
curl -I https://generativelanguage.googleapis.com
# Check environment
env | grep -E "(API_KEY|AI_)"
Getting Help
- Check this documentation
- Run with
--help: - Search existing issues
- Open a new issue on GitHub
When reporting issues, please include: - Aetheris version (aetheris --version) - Python version (python --version) - Operating system - Error message (full traceback if available) - Steps to reproduce