Common Errors
Missing API Key
Missing API Key
Error Message
Solution
Set theCBL_API_KEY environment variable:Get your API key by contacting team@circuitbreakerlabs.ai
OpenAI API Key Missing
OpenAI API Key Missing
WebSocket Connection Failed
WebSocket Connection Failed
Error Message
Possible Causes and Solutions
1. Network connectivity issuesCheck your internet connection and verify you can reach the API:CBL_API_BASE_URL, verify the URL format:Provider API Errors
Provider API Errors
OpenAI Errors
Error: Rate limit exceededOllama Errors
Error: Connection refusedScript Errors (Custom Provider)
Script Errors (Custom Provider)
Error Message
Solution
Your Rhai script must define the required functions. See the examples/providers/ directory for templates.Minimal script structure:File Write Errors
File Write Errors
JSON Parsing Errors
JSON Parsing Errors
Error Message
Solution
This usually indicates the API returned unexpected output. Enable debug logging:- The provider is returning valid responses
- Your custom script (if using custom provider) is formatting output correctly
- The API endpoint is responding with the expected format
Debugging Techniques
Enable Log Mode
Disable the TUI and see detailed logs:- WebSocket connection details
- API requests and responses
- Evaluation progress
- Error stack traces
Increase Log Level
Get more detailed information:Test Provider Connection
Verify your provider is working before running full evaluations: OpenAI:Use Minimal Test Cases
Start with a small evaluation to isolate issues:Check Network Connectivity
Verify you can reach the Circuit Breaker Labs API:Configuration Issues
Environment Variables Not Working
Environment Variables Not Working
Custom Headers Not Applied
Custom Headers Not Applied
Performance Issues
Evaluation Running Slowly
Evaluation Running Slowly
Possible Causes and Solutions
1. High number of variationsReduce--variations and --maximum-iteration-layers:--num-ctx if you don’t need large contexts:High Memory Usage
High Memory Usage
Getting Help
Command Help
View available options for any command:Enable Verbose Output
Combine log mode with debug level for maximum information:Check Version
Contact Support
If you’re still experiencing issues:-
Collect debug logs:
-
Check the repository:
Visit github.com/circuitbreakerlabs/cli for:- Known issues
- Latest releases
- Example configurations
-
Contact the team:
Email team@circuitbreakerlabs.ai with:- Your command
- Error message
- Debug logs
- CLI version (
cbl --version)
When reporting issues, always include the CLI version and relevant error messages from debug logs.