Troubleshooting
Error: "unauthorized"
Cause: Invalid or missing API key.
Solution:
- Check your API key is correct
- Ensure it starts with
sk_live_orsk_test_ - Verify the key is active in Dashboard
- Check Authorization header format:
Bearer sk_live_xxxxx
Error: "rate_limit_exceeded"
Cause: Too many requests.
Solution:
- Check
Retry-Afterheader for wait time - Implement exponential backoff
- Use batch endpoint for multiple decisions
- Upgrade plan if needed
Reason Code 1: "No valid action found"
Cause: All actions failed threshold checks.
Solution:
# Lower thresholds
ata.configure(
conf_min=0.1,
coh_min=0.1,
cons_min=0.1
)
High Latency
Cause: Network latency, high iteration budget.
Solution:
- Reduce
iter_budget - Use batch endpoint
- Check network connection
Connection Errors
Solution:
- Check status.thalosforge.com
- Verify firewall allows HTTPS to api.thalosforge.com
- Implement retry logic