Need help?
For immediate assistance, use the Crisp chat widget in the bottom-right corner of our landing page or web app to reach our support team directly. This guide covers common issues and their solutions. If you don’t find what you’re looking for, don’t hesitate to reach out.API errors
Catching errors
All API errors throwSandboxApiError with HTTP status and response details:
Common API errors
401 Unauthorized- Invalid or missing API key
- Check
SANDBOX_API_KEYenvironment variable - Verify key in dashboard
- Sandbox ID doesn’t exist or was deleted
- Sandbox belongs to different organization
- Invalid parameters (e.g., negative timeout)
- Malformed request body
- Rate limit exceeded
- Wait and retry with exponential backoff
Networking issues
Connection refused
Symptoms: Can’t reach exposed service, connection refused errors Solutions:- Check IPv6 binding:
- Verify process is running:
- Check server logs:
- Wait for server startup:
Invalid port
Error: “Invalid port provided” Solution: Port must be a positive integer:Command execution issues
Timeout errors
Symptoms: Commands fail with timeout Solutions:- Increase timeout (max 60s):
- Use background mode for long-running processes:
- Split into smaller commands:
Command fails silently
Symptoms: Command returns success but doesn’t work Solutions:- Check exit code and stderr:
- Add error handling in shell:
Background process exits immediately
Symptoms: Background process doesn’t stay running Solutions:- Check logs for errors:
- Verify process is running:
File operation issues
File size limit exceeded
Error:FileSizeError: File size X bytes exceeds maximum allowed size
Solution: SDK enforces 10 MB limit per write:
File not found
Symptoms: Read fails with “Failed to read file” Solution: Check if file exists before reading:Sandbox management issues
Sandbox stops unexpectedly
Symptoms: Sandbox terminates before work completes Solutions:- Check stopAt timestamp:
- Extend timeout proactively:
- Set longer timeout on creation:
Can’t rehydrate sandbox by ID
Error: 404 when callingget(id)
Reasons:
- Sandbox was deleted
- Sandbox timed out and auto-terminated
- ID belongs to different organization
- Typo in ID
Getting help
If you’re still experiencing issues:- Check logs: Review sandbox execution logs and stderr output
- Verify configuration: Double-check API keys, image names, and parameters
- Test locally: Try reproducing with Docker locally first
- Contact support: Reach out via the app with:
- Sandbox ID
- Error messages
- Steps to reproduce
- Expected vs actual behavior