Common Issues
Solutions to problems you might encounter when using the Labs API.Authentication Issues
”Invalid or missing API key”
Cause: API key is incorrect or not included properly. Solutions:- Check that you’re using
Bearerprefix: - Verify the key hasn’t been revoked in the Labs Portal
- Ensure no extra whitespace in the key
”No active subscription for collection”
Cause: Your organization doesn’t have access to this collection. Solutions:- Check your subscriptions in the Labs Portal dashboard
- Request access to the collection via the Portal
- Verify you’re using the correct
collection_slug
Rate Limiting
”Rate limit exceeded” (429)
Cause: Too many requests in the time window. Solutions:- Implement exponential backoff:
- Use batch endpoints instead of individual calls
- Check
X-RateLimit-Remainingheader and pause before hitting limit
Rate limit headers not present
Cause: Request failed before rate limit processing. Solution: Check for other errors (auth, validation) that occur before rate limiting.Episode Issues
”Episode not found”
Cause: Invalid episode ID or episode was cleaned up. Solutions:- Episodes expire after 24 hours of inactivity
- Verify the episode ID is correct
- Create a new episode if needed
”Episode already complete”
Cause: Trying to submit turns to a finished episode. Solution: Checkepisode_complete flag before submitting more turns:
Episode terminates immediately
Cause: Model made a critical error in first turn. Solutions:- Check
terminal_reasonin the response - Review your model’s output for harmful content
- Ensure tool calls are valid against the schema
Reward Issues
Rewards always zero
Cause: Model isn’t making meaningful progress. Solutions:- Check if model is asking relevant questions
- Verify conversation format is correct
- Review scenario requirements
Unexpectedly low rewards
Cause: Model triggered penalty conditions. Common triggers:- Harmful or dangerous recommendations
- Incorrect conclusions
- Invalid tool usage
- Off-topic responses
Rewards don’t match expectations
Cause: Misunderstanding of reward calculation. Remember:- Rewards are per-turn, not cumulative
- Rewards reflect this turn’s value, not future potential
- Different scenarios have different reward scales
Request Issues
”Validation error”
Cause: Request body doesn’t match expected schema. Common fixes:- Check required fields are present
- Verify field types match schema
- Ensure arrays have correct item structure
Tool call issues
Cause: Tool calls that don’t match the expected schema or are inappropriate for the scenario will affect your reward score. Tips:- Check tool name matches available tools from the episode response
- Ensure input matches the
json_schemaprovided - Include all required fields
Request timeout
Cause: Request took too long to process. Solutions:- Increase client timeout:
- For batch requests, reduce batch size
- Check for network issues
Integration Issues
”Module not found” errors
Cause: Missing dependencies. Solution: The examples use Python’s standard library (urllib.request, json), so no additional packages are required. If you see module errors, ensure you’re using Python 3.11+.
Async issues
Cause: Mixing sync and async code incorrectly. Solution: The standard libraryurllib.request is synchronous. For async HTTP, use asyncio with aiohttp or similar:
Getting Help
If you can’t resolve an issue:- Check the API Reference for correct request/response formats
- Review error messages — they indicate the exact problem
- Contact support at labs@tacitintelligence.co with:
- Error message
- Request details (sanitized)
- Steps to reproduce