Skip to main content
This page covers common issues you may encounter and how to resolve them.

Common Errors

Error Message

Solution

Set the CBL_API_KEY environment variable:
Or provide it as a command-line argument:
Get your API key by contacting team@circuitbreakerlabs.ai

Error Message

Solution

When using the OpenAI provider, set the OPENAI_API_KEY environment variable:
Or provide it explicitly:

Error Message

Possible Causes and Solutions

1. Network connectivity issuesCheck your internet connection and verify you can reach the API:
2. Firewall or proxy blocking WebSocket connectionsEnsure your firewall allows outbound WebSocket connections on port 443. If behind a corporate proxy, you may need to configure proxy settings.3. Invalid API keyVerify your API key is correct and active:
4. Custom base URL misconfiguredIf using a custom CBL_API_BASE_URL, verify the URL format:

OpenAI Errors

Error: Rate limit exceeded
Solution: Wait and retry, or reduce the number of variations/test cases:
Error: Invalid model
Solution: Use a valid OpenAI model name:
Error: Insufficient quota
Solution: Check your OpenAI billing settings and add credits to your account.

Ollama Errors

Error: Connection refused
Solution: Ensure Ollama is running:
Error: Model not found
Solution: Pull the model first:

Error Message

Solution

Your Rhai script must define the required functions. See the examples/providers/ directory for templates.Minimal script structure:

Error Message

Solution

1. Check directory permissions
2. Use a different output directory
3. Ensure the parent directory exists

Error Message

Solution

This usually indicates the API returned unexpected output. Enable debug logging:
Check the logs for the actual API response and verify:
  • 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:
This shows:
  • WebSocket connection details
  • API requests and responses
  • Evaluation progress
  • Error stack traces

Increase Log Level

Get more detailed information:
trace level logging can be very verbose. Use it only when debugging specific issues.

Test Provider Connection

Verify your provider is working before running full evaluations: OpenAI:
Ollama:

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

Issue

Environment variables aren’t being recognized.

Solution

1. Verify they’re exported
2. Export in the same shell session
3. Add to shell profile for persistence

Issue

Headers specified with --add-header aren’t being sent.

Solution

Verify the header format:
Enable debug logging to verify headers are being sent:

Issue

Solution

The command structure is:
Example order:

Performance Issues

Possible Causes and Solutions

1. High number of variationsReduce --variations and --maximum-iteration-layers:
2. Provider rate limitsOpenAI and other providers have rate limits. The CLI automatically retries, but this adds latency.3. Network latencyIf using Ollama, ensure it’s running locally for best performance:
4. Large context windowsFor Ollama, reduce --num-ctx if you don’t need large contexts:

Issue

The CLI or provider is consuming too much memory.

Solution

For Ollama, limit GPU layers and context size:
Run fewer evaluations concurrently and process in batches.

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:
  1. Collect debug logs:
  2. Check the repository:
    Visit github.com/circuitbreakerlabs/cli for:
    • Known issues
    • Latest releases
    • Example configurations
  3. 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.