π¨ Overview
This page covers common errors you might encounter when using ClosedLoop AI CLI, along with solutions and troubleshooting steps.π Authentication Errors
No API Key Configured
Solution:Invalid API Key
Solution:- Get a new API key from https://app.closedloop.sh
- Update your configuration:
API Key Expired
Solution:- Generate a new API key from your dashboard
- Update the configuration with the new key
π Validation Errors
Invalid Website URL
Solution:Invalid Page Number
Solution:- Use page numbers starting from 1
- Check that the page exists (not beyond available pages)
Content Too Short
Solution:- Provide more detailed feedback content
- Minimum 10 characters required
π Not Found Errors
Insight Not Found
Solution:- Check the insight ID is correct
- Verify the insight exists in your account
- Use
cl insightto list available insights
Ingest Not Found
Solution:- Check the ingest ID is correct
- Verify the ingest exists in your account
- Use
cl ingestto list available ingests
π Connection Errors
Cannot Connect to Servers
Solution:- Check your internet connection
- Verify you can access https://mcp.closedloop.sh
- Check if your firewall is blocking the connection
- Try again in a few minutes
Timeout Errors
Solution:- Check your internet connection speed
- Try again with a smaller dataset
- Contact support if the issue persists
β‘ Rate Limiting
Too Many Requests
Solution:- Wait a few minutes before trying again
- Reduce the frequency of your requests
- Consider using pagination for large datasets
ποΈ File System Errors
Configuration File Error
Solution:File Not Found
Solution:- Check the file path is correct
- Verify the file exists
- Use absolute paths if needed
π Error Codes Reference
| Code | Description | Solution |
|---|---|---|
NO_API_KEY | No API key configured | Run cl config set --api-key <key> |
INVALID_API_KEY | API key is invalid | Get new key from https://app.closedloop.sh |
VALIDATION_ERROR | Invalid parameters | Check input format and requirements |
NOT_FOUND | Resource not found | Check ID is correct and exists |
RATE_LIMITED | Too many requests | Wait and retry |
CONNECTION_ERROR | Cannot connect to servers | Check internet connection |
CONFIG_ERROR | Configuration file error | Check permissions or use environment variable |
π οΈ Troubleshooting Steps
1. Check Configuration
2. Test Connection
3. Validate Input
4. Check Logs
π Getting Help
If youβre still experiencing issues:- Check the documentation - Review the specific command pages
- Search existing issues - Check GitHub Issues
- Contact support - Email support@closedloop.sh with:
- Error message
- Command you were running
- Your CLI version (
cl --version) - Operating system details