Troubleshooting Guide
Common issues and solutions for AI development tools.
Claude Code
"API Key Invalid"
bash
# Set your API key
export ANTHROPIC_API_KEY=your-key-hereContext Too Long
- Use
/compactto summarize conversation - Start fresh with
/clear - Break large tasks into smaller chunks
Permission Denied
- Claude Code requires write access to project
- Check file/folder permissions
- Run from project root directory
FlowiseAI
Port Already in Use
bash
# Use different port
npx flowise start -p 3001Vector Store Connection Failed
- Check database credentials
- Verify database is running
- Check network/firewall settings
"Model Not Found"
- Verify API key is set
- Check model name spelling
- Ensure model is available in your region
Memory Issues with Large Documents
- Enable chunking in document loader
- Reduce chunk size
- Use streaming for responses
n8n
Webhook Not Working
bash
# Run with tunnel for external access
n8n start --tunnel"Execution Timed Out"
- Increase timeout in workflow settings
- Split large data processing
- Use batch processing
Credentials Not Saving
- Check file permissions on ~/.n8n
- Verify encryption key is set
- Restart n8n service
Ollama
Model Download Stuck
bash
# Cancel and retry
Ctrl+C
ollama pull modelname"CUDA Out of Memory"
- Use smaller model (7B instead of 13B)
- Close other GPU applications
- Use CPU mode with
--num-gpu 0
Slow Performance
- Check available RAM
- Use quantized models (Q4_0)
- Reduce context length
OpenAI API
Rate Limit Exceeded
- Implement exponential backoff
- Use batch API for large jobs
- Upgrade API tier
"Context Length Exceeded"
- Reduce input size
- Use summarization
- Switch to model with larger context
High Costs
- Use gpt-3.5-turbo for simple tasks
- Cache responses
- Optimize prompts for shorter outputs
General Tips
API Keys Best Practices
- Never commit keys to git
- Use environment variables
- Rotate keys periodically
- Use separate keys for dev/prod
Performance Optimization
- Use streaming for long responses
- Implement caching
- Batch similar requests
- Choose appropriate model size
Debugging AI Responses
- Log prompts and responses
- Use lower temperature for consistency
- Add system prompts for behavior
- Test with simple inputs first
Version Mismatches
Many issues come from version differences. Always check:
- Tool version matches tutorial
- API version is current
- Dependencies are compatible