Handle errors
Errors returned by the service carry the HTTP status code and a message.
Other errors:
In Python, service and connection errors derive from
AgentBoxSDKError, and every service error derives from APIError. Invalid input, such as a missing API key, a relative file path, or a missing idc_name or instance_type on launch, raises a plain ValueError.
The SDK does not retry failed requests. On rate-limit or server errors, retry with backoff.
Limits
Reporting a problem
Send your GMI contact:- SDK language and version
- Data center, size and image
- Sandbox ID, and the execution ID for command issues
request_idandtrace_idfrom the error response, if present, plus the HTTP status and message- Time of the issue (UTC)
- The smallest code or command that reproduces it