Quick Fixes Summary
Jump to the solution for common errors:| Error Code | Quick Fix | Details |
|---|---|---|
| INVALID_API_KEY | Verify API key in Settings → API Keys | Link |
| SESSION_NOT_FOUND | Create new session with POST /start/start-session | Link |
| SESSION_EXPIRED | Sessions expire after maxDuration - create new one | Link |
| SESSION_LIMIT_REACHED | Terminate unused sessions or upgrade plan | Link |
| TASK_TIMEOUT | Increase maxDuration or simplify task | Link |
| TASK_ALREADY_RUNNING | Wait for completion or stop with newState: “stop” | Link |
| RATE_LIMIT_EXCEEDED | Wait before retrying, implement exponential backoff | Link |
| INSUFFICIENT_BALANCE | Add credits at enigma.click/billing | Link |
| NAVIGATION_TIMEOUT | Retry request or check if website is accessible | Link |
| ELEMENT_NOT_FOUND | Rephrase task or wait for page load | Link |
Error Response Format
All errors follow a consistent structure:HTTP Status Codes
| Status | Meaning | Common Causes |
|---|---|---|
200 | Success | Request completed successfully |
400 | Bad Request | Invalid parameters, malformed JSON |
401 | Unauthorized | Missing or invalid API key |
402 | Payment Required | Insufficient account balance |
404 | Not Found | Session or task does not exist |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side issue |
503 | Service Unavailable | System maintenance or overload |
Authentication Errors
INVALID_API_KEY
API_KEY_EXPIRED
UNAUTHORIZED
Authorization: Bearer YOUR_API_KEY header in all requests.
Example:
Session Errors
SESSION_NOT_FOUND
- Session was terminated
- Session expired (5 min timeout)
- Invalid sessionId
POST /start/start-session.
Related:
SESSION_EXPIRED
maxDuration. Create a new session for continuation.
Best Practice:
SESSION_LIMIT_REACHED
INSTANCE_UNAVAILABLE
Task Execution Errors
TASK_NOT_FOUND
TASK_ALREADY_RUNNING
newState: "stop".
Stop running task:
TASK_TIMEOUT
maxDuration or simplify the task.
Adjust timeouts:
INVALID_TASK_DETAILS
Browser & Navigation Errors
NAVIGATION_TIMEOUT
- Slow website
- Network issues
- Website blocking automated access
- Retry the request
- Check if website is accessible
- Use
startingUrlif navigating to a specific page
PAGE_CRASH
ELEMENT_NOT_FOUND
- Page structure changed
- Element inside iframe
- Element not yet loaded
Rate Limiting & Network Errors
RATE_LIMIT_EXCEEDED
POST /start/start-session: 10 requests/minute per userPOST /start/send-message: 10 requests/minute per userPOST /start/run-task: 10 requests/minute per userGET /task/:sessionId/:taskId: No rate limit
Billing & Payment Errors
INSUFFICIENT_BALANCE
- Check your balance regularly in the dashboard
- Set up low balance alerts
- Consider auto-recharge options
PAYMENT_FAILED
- Expired card
- Insufficient funds
- Card issuer declined
- Invalid billing address
Validation Errors
INVALID_PARAMETER
maxDuration: 1,000 - 300,000 ms (1 second - 5 minutes)maxInputTokens: 1,000 - 100,000 tokensmaxOutputTokens: 100 - 50,000 tokens
MISSING_REQUIRED_FIELD
taskDetails(string)
sessionId(string)message(object)
sessionId(string)taskDetails(string)
MCP-Specific Errors
MCP_SESSION_NOT_FOUND
MCP_METHOD_NOT_FOUND
tools/listtools/callresources/listresources/read
MCP_INVALID_REQUEST
jsonrpc: "2.0".
Example:
Error Handling Best Practices
Complete Error Handling Example
Handling Guardrails
Debugging Checklist
When encountering issues:- Verify API key is valid and has correct permissions
- Check account balance is sufficient
- Confirm session/task IDs are correct
- Review task instructions for clarity
- Check network connectivity
- Look for error codes in responses
- Enable verbose logging
- Test with simpler task first
- Check system status page
- Review usage limits for your plan
Getting Help
If you’re still experiencing issues:- Documentation: Review relevant API docs
- Status Page: Check status.enigma.click
- Support: Email support@enigma.click with:
- Error code and full error response
- Session ID and task ID
- Task description
- Timestamp of occurrence
- Steps to reproduce