Authentication Errors
Error: “Authentication failed”
Cause: Invalid or missing API key. Solution:- Python
- JavaScript/TypeScript
- Always set
HOPX_API_KEYenvironment variable - Verify API key in dashboard
- Rotate API keys regularly
Template Not Found
Error: “Template not found”
Cause: Invalid template name or template doesn’t exist. Solution:- Python
- JavaScript/TypeScript
- Use exact template names (case-sensitive)
- List available templates using API or SDK
- Check template availability before use
Code Execution Errors
Error: “Code execution failed”
Cause: Syntax errors, runtime errors, or timeout. Solution:- Python
- JavaScript/TypeScript
- Test code locally before executing in sandbox
- Set appropriate timeouts
- Handle errors gracefully
- Check code syntax before execution
Timeout Errors
Error: “Request timed out”
Cause: Code execution exceeded timeout limit. Solution:- Python
- JavaScript/TypeScript
- Set appropriate timeouts for your operations
- Break long operations into smaller chunks
- Monitor execution time
File Not Found Errors
Error: “File not found”
Cause: File doesn’t exist in sandbox filesystem. Solution:- Python
- JavaScript/TypeScript
- Check file existence before reading
- Use absolute paths
- Create files before reading them
Rate Limit Errors
Error: “Rate limit exceeded”
Cause: Too many requests in a short time period. Solution:- Python
- JavaScript/TypeScript
- Implement exponential backoff
- Batch operations when possible
- Monitor rate limit usage
Common Solutions Summary
Authentication Issues
Authentication Issues
- Verify API key is set in environment variable
- Check API key is valid in dashboard
- Ensure API key has correct permissions
Template Issues
Template Issues
- Use exact template names (case-sensitive)
- Verify template exists before use
- Check template availability
Code Execution Issues
Code Execution Issues
- Test code locally first
- Set appropriate timeouts
- Handle errors gracefully
- Check syntax before execution
File Operation Issues
File Operation Issues
- Use absolute paths
- Check file existence before reading
- Create files before accessing them
Rate Limit Issues
Rate Limit Issues
- Implement exponential backoff
- Batch operations when possible
- Monitor rate limit usage

