{
"type": "error",
"error": {
"type": "not_found_error",
"message": "No agent with this ID exists.",
"code": "agent_not_found"
},
"request_id": "req_..."
}
error.type決定 HTTP 狀態;一般情況按它分支。error.code是穩定的、機器可讀的原因;需要區分具體原因時按它分支。下表會持續增加:遇到不認識的錯誤碼,按其type的通用方式處理。error.message面向人,不要解析。- 聯絡支援時請附上
request_id。 - 只有重試同一請求可能成功時(例如
Idempotency-Key仍在處理中),409才帶x-should-retry: true。
invalid_request_error (HTTP 400)
請求格式錯誤或不可接受。
處理方式(除非該行另有說明): Correct the request as the message describes and send it again; the same request will keep failing.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
access_denied | - | The device authorization request was denied. | Stop polling; start a new device authorization if access is still wanted. |
agent_archived | - | Agent is archived. | 同上。 |
already_member | - | This address is already a member. | 同上。 |
approval_invalid | - | The approval does not apply to this tool call, or was already used. | 同上。 |
authorization_pending | retry | The device authorization request has not been approved yet. | Keep polling at the given interval. |
bill_rejected | - | bma-bill refused the usage. | 同上。 |
body_invalid | - | The request body is unreadable or too large. | 同上。 |
brain_unavailable | - | The brain machine of the session is permanently unavailable; create a new session. | 同上。 |
cannot_archive_default_workspace | - | The default workspace cannot be archived. | 同上。 |
cannot_modify_admin | - | An organization owner or admin cannot be changed or removed through the API. | 同上。 |
client_registration_failed | - | The authorization server refused the dynamic client registration. | 同上。 |
client_registration_unavailable | - | The authorization server has no dynamic client registration. | Pass client_id and send the request again. |
deployment_quota_exceeded | - | An organization can have at most 1000 scheduled deployments. | 同上。 |
desktop_watch_unsupported | - | The desktop session has no watch socket; its screen is live media. | 同上。 |
endpoint_override_not_allowed | - | provider_config.api_base_url is not an E2B tier of this platform. | 同上。 |
environment_archived | - | The environment is archived, so it cannot be updated. | 同上。 |
environment_id_mismatch | - | environment_id must equal the environment in the path. | 同上。 |
environment_id_not_allowed | - | A machine executor sends an empty environment_id. | 同上。 |
environment_unavailable | - | The session’s machine is not connected. | 同上。 |
expired_token | - | The device code has expired. | Run the command on the device again to get a new code. |
file_not_downloadable | - | This file cannot be downloaded. | 同上。 |
hands_unavailable | - | The hands machine of the session is not available. | 同上。 |
harness_unavailable | - | executor-hosted harness cannot run on the platform (bma_placement.brain.location server). | 同上。 |
idempotency_key_required | - | The Idempotency-Key header is required; it becomes the grant id. | 同上。 |
idempotency_key_reused | - | This Idempotency-Key was used with a different request. | 同上。 |
instance_id_not_allowed | - | instance_id is only for the instances of a platform brain fleet. | 同上。 |
invalid_allowed_host | - | Invalid allowed host. | 同上。 |
invalid_batch | - | Events must hold 1 to 500 items. | 同上。 |
invalid_body | - | The request body is unreadable or too large. | 同上。 |
invalid_claims | - | Invalid claims. | 同上。 |
invalid_client | - | client_id is not a registered device client. | 同上。 |
invalid_content_type | - | The request body must be JSON. | 同上。 |
invalid_created_by_user_id | - | created_by_user_id is not a valid user ID. | 同上。 |
invalid_credential | - | The credential in the request is missing an organization or is otherwise unusable. | 同上。 |
invalid_cursor | - | The pagination cursor (page, after_id or before_id) is malformed or mixed with its counterpart. | 同上。 |
invalid_date | - | Invalid date. | 同上。 |
invalid_depth | - | Depth must be 0 or 1. | 同上。 |
invalid_digest | - | X-BMA-File-Digest must be sha256:<64 lowercase hex digits>. | 同上。 |
invalid_email | - | Email must be an email address. | 同上。 |
invalid_event | - | Invalid event. | 同上。 |
invalid_event_deltas | - | event_deltas must be agent.message or agent.thinking. | 同上。 |
invalid_event_id | - | event_id is required (at most 128 bytes). | 同上。 |
invalid_expected_content_sha256 | - | expected_content_sha256 must be 64 lowercase hexadecimal characters. | 同上。 |
invalid_expires_at | - | expires_at must lie in the future. | 同上。 |
invalid_field | - | A field of the request body is missing or malformed; the message names it. | 同上。 |
invalid_form | - | The request body must be a form. | 同上。 |
invalid_grant | - | grant_id and a positive amount are required. | 同上。 |
invalid_granularity | - | Granularity must be day or month. | 同上。 |
invalid_idempotency_key | - | Idempotency-Key must be 1-255 visible ASCII characters. | 同上。 |
invalid_include_archived | - | include_archived must be true or false. | 同上。 |
invalid_include_default | - | include_default must be true or false. | 同上。 |
invalid_instance_id | - | instance_id is 1-63 lowercase letters, digits and hyphens. | 同上。 |
invalid_interval | - | Invalid interval. | 同上。 |
invalid_json | - | The request body is not valid JSON. | 同上。 |
invalid_labels | - | The machine labels are invalid. | 同上。 |
invalid_limit | - | Limit must be an integer between 1 and 1000. | 同上。 |
invalid_maintenance_claims | - | Maintenance credentials require a scoped session and no ordinary turn. | 同上。 |
invalid_mcp_server_url | - | mcp_server_url is not a usable MCP server URL. | 同上。 |
invalid_minutes | - | Invalid minutes. | 同上。 |
invalid_model | - | Invalid model. | 同上。 |
invalid_model_override | - | bma_model_override on create needs model, provider and api_key. | 同上。 |
invalid_model_override_url | - | bma_model_override.provider.base_url must be an HTTPS origin without userinfo, path, query or fragment. | 同上。 |
invalid_model_provider | - | The organization model provider is invalid (id, api_format or endpoint_path). | 同上。 |
invalid_name | - | The name is missing or not valid. | 同上。 |
invalid_operation | - | Operation must be created, modified or deleted. | 同上。 |
invalid_org | - | org_id is required (at most 128 bytes). | 同上。 |
invalid_os | - | Invalid os. | 同上。 |
invalid_output_path | - | Path must be a relative path below the session’s outputs directory (at most 512 bytes). | 同上。 |
invalid_page | - | Page is not a cursor returned by this API. | 同上。 |
invalid_password | - | The password does not meet the password policy; the message says why. | 同上。 |
invalid_path | - | The path is not valid. | 同上。 |
invalid_path_prefix | - | path_prefix must start and end with /. | 同上。 |
invalid_period | - | From must be before to, at most 366 days apart. | 同上。 |
invalid_plan | - | Plan must be metered or unlimited. | 同上。 |
invalid_provider_config | - | The E2B team key is empty. | 同上。 |
invalid_provider_url | - | The model provider base_url is not an HTTPS URL without userinfo, query, fragment or trailing slash. | 同上。 |
invalid_range | - | The range or time window of the request is not valid. | 同上。 |
invalid_rbac_group_ids | - | BMA organizations have no RBAC groups. | 同上。 |
invalid_request | - | The request is malformed; the message says why. | 同上。 |
invalid_resources | - | Invalid resources. | 同上。 |
invalid_role | - | The role is not an allowed organization role. | 同上。 |
invalid_secret | - | The secret must be 1 to 4096 bytes. | 同上。 |
invalid_session | - | session_id is required (at most 128 bytes). | 同上。 |
invalid_state | - | The resource is not in a state that allows this operation. | 同上。 |
invalid_status | - | The status filter or value is not one of the allowed statuses. | 同上。 |
invalid_status_filter | - | Suspension is a billing state; read billing_accounts. Filter on active or banned. | 同上。 |
invalid_storage | - | Invalid storage. | 同上。 |
invalid_time | - | A time value is not valid. | 同上。 |
invalid_tokens | - | Invalid tokens. | 同上。 |
invalid_ttl | - | A model token lives at most one hour. | 同上。 |
invalid_usage | - | The usage record is not valid. | 同上。 |
invalid_user_id | - | user_id must name a user. | 同上。 |
invalid_view | - | View must be basic or full. | 同上。 |
invalid_workspace_id | - | An admin key acts in every workspace: omit workspace_id. | 同上。 |
invalid_workspace_role | - | workspace_role must be a workspace role (workspace_user, …). | 同上。 |
invite_already_exists | - | This address already has a pending invite. | 同上。 |
invite_not_pending | - | This invite is no longer pending. | 同上。 |
is_a_directory | - | Is a directory. | 同上。 |
machine_desktop_unsupported | - | The machine has no desktop. | 同上。 |
machine_executor_unsupported | - | The template cannot serve machines: its bmad is older than required. | 同上。 |
machine_not_pausable | - | A byo machine is not paused or resumed by BMA. | 同上。 |
machine_pool_capacity_exceeded | - | The machine pool has reached max_total_machines. | 同上。 |
mcp_authorization_unavailable | - | The MCP server does not offer a usable OAuth authorization. | 同上。 |
mcp_server_host_not_allowed | - | The MCP server host is not allowed. | 同上。 |
model_limits_unknown | - | The model’s context window or output limit is unknown: its provider’s model list does not state it and none was declared. | Choose a model whose limits are known, or declare its limits, and send the request again. |
model_not_available | - | The model is not available for this organization. | 同上。 |
model_not_found | - | No model with this ID exists (or it is not visible to the caller). | 同上。 |
model_override_key_rejected | - | bma_model_override.api_key must be 8 to 4096 bytes. | 同上。 |
model_protocol_mismatch | - | The model does not speak the protocol the request needs. | 同上。 |
model_required | - | No model is configured. | 同上。 |
no_price_book | - | The model has no price entry. | 同上。 |
not_a_directory | - | Not a directory. | 同上。 |
not_served | - | This channel or operation is not served on this endpoint. | 同上。 |
organization_id_conflict | - | bma-organization-id and the organization in the request path name different organizations. | 同上。 |
organization_id_required | - | Name the organization with organization_id. | 同上。 |
organization_required | - | Name the organization with the bma-organization-id header. | 同上。 |
password_too_weak | - | The password must have 12-128 characters, mix at least three of lower case, upper case, digits and symbols, and must not contain the username. | 同上。 |
placement_unsatisfiable | - | The environment names no machine for the session’s tools and has no machine pool. | 同上。 |
platform_brain_machine | - | A migrated executor session names a machine for a brain the platform runs; that machine does not move with the session. | Leave out the machine of a platform brain’s executor session. |
project_required | - | A workspace is required. | 同上。 |
provider_not_supported | - | The machine provider is not supported. | 同上。 |
quota_resource_not_enforced | - | The platform does not enforce this quota resource, so it cannot be overridden. | Override one of the enforced resources named in the message. |
reason_required | - | A reason is required for this operation. | 同上。 |
scheduling_timeout | - | The machine was not scheduled in time. | 同上。 |
scratch_output | - | Temporary and hidden files are not session outputs. | 同上。 |
screenshot_unsupported | - | This desktop session does not offer screenshots. | 同上。 |
slow_down | retry | The device is polling too fast. | Add 5 seconds to the polling interval and keep polling. |
target_kind | - | Executors of this kind do not exchange tokens. | 同上。 |
template_not_allowed | - | The machine template is not allowed for this organization or pool. | 同上。 |
terminal_unsupported | - | The machine has no terminal executor. | 同上。 |
too_many_skills | - | The agent references more skills than allowed. | 同上。 |
unknown_provider | - | The provider name is not known. | 同上。 |
unknown_quota_resource | - | Resource must be one of the QuotaResource values of the admin API. | 同上。 |
unknown_tool | - | The turn has no such MCP tool. | 同上。 |
unsupported | - | The request uses a parameter this server does not support. | 同上。 |
unsupported_event_type | - | The event type is not supported on this endpoint. | 同上。 |
unsupported_field | - | A field of the request is not supported on this deployment. | 同上。 |
unsupported_grant_type | - | grant_type is not the device code grant. | 同上。 |
unsupported_role | - | The role cannot be assigned in BMA organizations. | 同上。 |
unsupported_session_option | - | bma_placement is not supported for sessions of this organization yet. | 同上。 |
unsupported_session_override | - | agent.model credentials and bma_model_override cannot be combined. | 同上。 |
unsupported_status | - | Status may be archived (or active for an active key); BMA keys cannot be made inactive. | 同上。 |
unsupported_view | - | This view is not served. | 同上。 |
unsupported_workspace_role | - | BMA workspaces have no billing role. | 同上。 |
validation_failed | - | A parameter failed schema validation; the message names it. | 同上。 |
workspace_archived | - | An archived workspace cannot get new API keys. | 同上。 |
workspace_id_conflict | - | bma-workspace-id and anthropic-workspace-id name different projects. | 同上。 |
workspace_required | - | The workspace the machine joins is missing. | Pass the workspace in the bma-workspace-id header. |
authentication_error (HTTP 401)
憑據缺失、錯誤或已過期。
處理方式(除非該行另有說明): Send a valid credential (API key, access token or console session) and retry.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
account_disabled | - | The account is disabled. | 同上。 |
credential_invalid | - | The credential is unknown or revoked. | 同上。 |
credential_missing | - | A machine daemon token is required. | 同上。 |
credential_revoked | - | The credential behind this token is no longer active. | 同上。 |
identity_failed | - | The identity provider’s account cannot sign in here. | 同上。 |
invalid_code | - | Invalid or expired code. | 同上。 |
invalid_credentials | - | Invalid username or password. | 同上。 |
invalid_egress_token | - | Egress token required. | 同上。 |
invalid_principal | - | The caller identity could not be verified. | 同上。 |
invalid_service_token | - | A service credential is required. | 同上。 |
invalid_ticket | - | The connection ticket is not valid. | 同上。 |
invalid_token | - | The token is not accepted for this operation. | 同上。 |
missing_principal | - | The caller is not authenticated. | 同上。 |
reauthentication_required | - | Enter your password again to continue. | 同上。 |
session_expired | - | Sign in to continue. | 同上。 |
setup_token_invalid | - | The setup token is invalid or expired. | 同上。 |
stale_turn | - | The turn ended or was started again in a newer epoch. | 同上。 |
token_expired | - | The token has expired. | 同上。 |
token_invalid | - | The forward token is invalid or expired. | 同上。 |
token_revoked | - | The token is no longer valid for this session. | 同上。 |
token_ttl | - | The model token lives longer than one hour. | 同上。 |
wrong_gateway | - | Tenant credentials are not accepted on the admin domain. | 同上。 |
permission_error (HTTP 403)
憑據有效,但無權執行此操作。
處理方式(除非該行另有說明): Use a credential with the required role or access; retrying with the same credential will not help.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
channel_scope | - | The token does not allow this channel. | 同上。 |
csrf_invalid | - | The CSRF token is missing or wrong. | 同上。 |
desktop_read_only | - | This desktop session is read-only. | 同上。 |
forbidden | - | The caller is not allowed to perform this operation. | 同上。 |
insufficient_credits | - | The organization has no credits left. | 同上。 |
mcp_oauth_initiator_mismatch | - | The authorization was started by another user or in another workspace. | Start the authorization again from the application. |
model_not_granted | - | The organization has not been granted this model. | 同上。 |
not_session_brain | - | This executor is not the brain of the session. | 同上。 |
override_principal_unsupported | - | Only a user or an organization API key sets a session model override. | 同上。 |
password_change_required | - | Change the password first. | 同上。 |
permission_denied | - | The credential or user role does not allow this action. | 同上。 |
permission_error | - | The credential lacks the role this operation needs. | 同上。 |
remote_brain_not_allowed | - | The brain runs on another machine and no hands machine’s owner allows a remote brain (remote_brain disabled). | 同上。 |
session_route_unavailable | - | The model route of the session is not configured or no longer available. | 同上。 |
user_credential_required | - | Connecting an MCP server by OAuth must be started by a signed-in user. | 同上。 |
view_not_granted | - | The token does not grant this view. | 同上。 |
workspace_read_only | - | This view is read-only. | 同上。 |
not_found_error (HTTP 404)
目標資源不存在(或對呼叫方不可見)。
處理方式(除非該行另有說明): Check the ID and the organization or workspace it belongs to; do not retry the same request.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
admin_user_not_found | - | No such admin user. | 同上。 |
agent_not_found | - | No agent with this ID exists. | 同上。 |
agent_version_not_found | - | The agent has no such version. | 同上。 |
api_key_not_found | - | API key not found. | 同上。 |
audit_event_not_found | - | No such audit event. | 同上。 |
blob_not_found | - | No such object. | 同上。 |
connector_not_found | - | No such sign-in provider. | 同上。 |
content_missing | - | The file content is not available. | 同上。 |
credential_not_found | - | Credential not found. | 同上。 |
deployment_not_found | - | Deployment not found. | 同上。 |
deployment_run_not_found | - | Deployment run not found. | 同上。 |
desktop_session_not_found | - | No desktop session with this ID exists. | 同上。 |
environment_not_found | - | No environment with this ID exists. | 同上。 |
executor_token_not_found | - | No executor token with this ID exists. | 同上。 |
file_not_found | - | No file with this ID exists. | 同上。 |
grant_not_found | - | No such credit grant. | 同上。 |
invite_not_found | - | Invite not found. | 同上。 |
machine_backup_not_found | - | No machine backup with this ID exists. | Check the backup ID; list the machine’s backups. |
machine_not_found | - | No machine with this ID exists. | 同上。 |
machine_pool_grant_not_found | - | No machine pool grant with this ID exists. | 同上。 |
machine_pool_not_found | - | No machine pool with this ID exists. | 同上。 |
memory_not_found | - | No memory with this ID exists. | 同上。 |
memory_store_not_found | - | No memory store with this ID exists. | 同上。 |
memory_version_not_found | - | No memory version with this ID exists. | 同上。 |
model_not_found | - | No model with this ID exists (or it is not visible to the caller). | 同上。 |
model_override_not_found | - | The session has no model override. | 同上。 |
model_provider_not_found | - | No organization model provider with this id. | Check the id; do not retry the same request. |
not_found | - | The addressed resource does not exist. | 同上。 |
organization_not_found | - | Organization not found. | 同上。 |
personal_access_token_not_found | - | Personal access token not found. | 同上。 |
project_not_found | - | Project not found. | 同上。 |
provider_machine_not_found | - | The sandbox does not exist. | 同上。 |
quota_override_not_found | - | No quota override has this ID. | Check the override ID; list the organization’s quota overrides. |
resource_not_found | - | No resource with this ID exists in the session. | 同上。 |
route_not_found | - | Organization writes are not served here. | 同上。 |
secret_not_found | - | No secret with this reference exists. | 同上。 |
session_not_found | - | No such session. | 同上。 |
skill_not_found | - | No skill with this ID exists. | 同上。 |
skill_version_not_found | - | No version with this ID exists. | 同上。 |
terminal_session_not_found | - | No terminal session with this ID exists. | 同上。 |
user_not_found | - | User not found. | 同上。 |
user_profile_not_found | - | User profile not found. | 同上。 |
vault_not_found | - | Vault not found. | 同上。 |
webhook_endpoint_not_found | - | No webhook endpoint with this ID exists. | 同上。 |
workspace_member_not_found | - | Workspace member not found. | 同上。 |
workspace_not_found | - | Workspace not found. | 同上。 |
conflict_error (HTTP 409)
請求與資源的當前狀態衝突。
處理方式(除非該行另有說明): Re-read the resource, resolve the conflicting state, then send the request again.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
account_exists | - | An account already exists for this email address; sign in instead. | 同上。 |
api_key_secret_not_replayable | - | The key of this Idempotency-Key was created and its secret shown once; archive it and create another. | 同上。 |
approval_invalid | - | The approval does not apply to this tool call, or was already used. | 同上。 |
bill_conflict | - | bma-bill refused the usage. | 同上。 |
cannot_modify_self | - | You cannot do this to your own account. | 同上。 |
capture_failed | - | The desktop agent sent no image. | 同上。 |
cleanup_unconfirmed | retry | The executor has not confirmed the cleanup of the WebRTC peer. | Retry the same request after a short delay. |
closed | - | The viewing connection has ended. | Open a new viewing connection. |
confirmation_closed | - | The tool confirmation was already closed. | 同上。 |
connections_unavailable | - | Connections to sessions of this stack are not served yet. | 同上。 |
control_held | - | Another user holds control of this desktop. | 同上。 |
control_unconfirmed | retry | The executor did not confirm the control request. | Retry the same request after a short delay. |
credential_key_taken | - | An active credential in this vault already has this mcp_server_url or secret_name. | 同上。 |
custom_tool_use_closed | - | The custom tool use was already closed. | 同上。 |
desktop_agent_error | - | The desktop agent refused the request without naming a code. | 同上。 |
desktop_agent_failed | - | The desktop agent of this session keeps stopping; close the session and open a new one. | 同上。 |
desktop_agent_unavailable | retry | The desktop agent of this session is not connected; retry. | Retry the same request after a short delay. |
desktop_attach_failed | retry | The native screen refused the session. | Retry the same request after a short delay. |
desktop_launch_failed | retry | The desktop agent could not be launched on the machine. | Retry the same request after a short delay. |
desktop_owner_replaced | retry | The desktop session moved to another replica; retry. | Retry the same request after a short delay. |
desktop_session_busy | retry | The machine’s desktop session changed; retry. | Retry the same request after a short delay. |
desktop_session_closed | - | Desktop session is closed. | 同上。 |
desktop_viewers_exhausted | - | The live media session has the maximum number of viewers. | 同上。 |
device_authorization_decided | - | The device authorization request was already approved or denied. | 同上。 |
display_unavailable | - | The desktop framebuffer geometry could not be confirmed. | Refresh the viewer before acquiring control again; do not replay unconfirmed input. |
event_id_reused | - | The event ID was already used with different content. | 同上。 |
executor_rejected | - | The machine’s executor refused the request. | Read the message for the executor’s reason, change what it names, then send the request again. |
executor_revocation_pending | retry | The archived session’s executor has not confirmed revocation. | Retry after the executor reconnects. Wait for its confirmation before starting a replacement session. |
grant_id_reused | - | grant_id was used for another org or amount. | 同上。 |
idempotency_conflict | - | This Idempotency-Key was used for another organization or amount. | 同上。 |
idempotency_key_in_use | retry | A request with this Idempotency-Key is still being processed. | Retry the same request after a short delay. |
in_progress | - | The call of this idempotency key is in progress. | 同上。 |
interaction_withdrawn | - | The interaction of this tool_use_id was withdrawn by the executor. | 同上。 |
invalid_frame | - | A signaling frame of the viewing connection is invalid (for example an ICE candidate). | 同上。 |
invalid_state | - | The resource is not in a state that allows this operation. | 同上。 |
last_admin | - | The last active admin cannot be demoted or disabled. | 同上。 |
lease_expired | - | The control lease has expired. | 同上。 |
machine_backup_failed | - | The machine backup failed; the message carries the reason. | Create a new backup of the machine. |
machine_backup_in_progress | retry | A backup of this machine is already uploading. | Wait for the running backup to finish, then retry. |
machine_backup_state_conflict | - | The machine backup is not in a state that allows this operation. | Read the backup’s state and retry the operation that state allows. |
machine_backup_unavailable | - | The machine has no backups for this operation (not a pool machine, no workspace grant, or no ready backup). | Back up a running pool machine first, or pick a machine that has a ready backup. |
machine_desktop_busy | - | The machine has an open desktop session in another workspace. | 同上。 |
machine_has_no_sandbox | - | The machine has no sandbox whose network could be limited. | 同上。 |
machine_offline | retry | The machine’s executor is not connected; retry. | Retry the same request after a short delay. |
machine_pool_in_use | - | The machine pool still has machines; delete them first. | 同上。 |
machine_pool_name_taken | - | A machine pool with this name already exists. | 同上。 |
machine_provision_expired | - | The machine failed before its provisioning finished. | 同上。 |
machine_rebuilding | retry | The machine is being rebuilt onto a new template and takes no new work until the rebuild finishes; user files are kept. | Wait for the Retry-After interval, then retry. |
machine_restore_in_progress | retry | The machine is already being restored. | Wait for the running restore to finish, then retry. |
machine_restore_not_pending | - | No restore of this backup is pending. | Start a restore of the backup before completing it. |
machine_restore_pending | - | The machine has not restored its pending backup yet, so it holds none of its files and is not backed up. | Wait until the machine is back with its restore done (it is backed up then), or restore it from that backup. |
machine_starting | retry | The machine is starting (the message names the stage). | Wait for the Retry-After interval, then retry. |
machine_state_conflict | - | The machine is in a state that does not allow this operation. | 同上。 |
machine_unavailable | - | The machine did not become ready in time. | 同上。 |
media_session_closed | - | The live media session is closed. | Open a new live media session. |
media_starting | retry | The live media session is starting. | Retry the same request after a short delay. |
memory_path_taken | - | A memory already exists at this path. | 同上。 |
memory_precondition_failed | - | The memory changed: content_sha256 does not match. | 同上。 |
memory_store_archived | - | Memory store is archived and cannot be attached. | 同上。 |
memory_store_full | - | Memory store already holds 10000 memories. | 同上。 |
memory_version_is_head | - | The version is the current head of a live memory and cannot be redacted. | 同上。 |
model_id_taken | - | The model id is a platform model’s or already one of the organization’s models. | Choose another model id. |
model_in_use | - | The organization model is granted to a workspace. | Revoke its grants first, then delete it. |
no_control | - | Nobody holds control of this desktop. | 同上。 |
not_dispatched | - | No turn of the session was dispatched yet. | 同上。 |
not_supported | - | The operation cannot act on this resource (e.g. banning with stop_machines when every machine is BYO). | 同上。 |
output_changed | - | The content does not match X-BMA-File-Digest; the file changed while uploading. | 同上。 |
personal_access_token_secret_not_replayable | - | The token of this Idempotency-Key was created and its secret shown once; revoke it and create another. | 同上。 |
plan_unlimited | - | An unlimited organization is never refused by billing; ban it to cut it off. | 同上。 |
provider_conflict | - | The sandbox is not in a state for this call. | 同上。 |
provider_id_taken | - | The provider id is a platform provider’s or already one of the organization’s providers. | Choose another provider id. |
provider_in_use | - | The organization model provider still has models. | Delete its models first, then the provider. |
resize_unsupported | - | The native input adapter cannot resize this display; no resize was dispatched. | Keep the current display size and stop automatic resize requests; other input may continue under the valid lease. |
screen_input_rejected | - | The capture did not confirm trusted input for the current stream and lease. | Refresh the capture and lease before sending new input; do not replay unconfirmed input. |
session_machine_exists | - | The session already has a machine. | 同上。 |
stale_epoch | - | A newer executor connection writes this session. | 同上。 |
stale_generation | - | The control generation changed. | 同上。 |
template_in_use | - | The machine template still has machines. | 同上。 |
template_not_ready | - | The machine template is not ready yet. | 同上。 |
terminal_session_closed | - | Terminal session is closed. | 同上。 |
transport_unavailable | retry | The executor did not return a valid WebRTC answer. | Retry the same request after a short delay. |
turn_closed | - | The turn has already ended. | 同上。 |
turn_unavailable | - | Phone viewing requires TURN credentials. | 同上。 |
username_taken | - | That username is taken. | 同上。 |
viewer_busy | - | The phone already has a viewer. | 同上。 |
viewer_required | - | No viewing connection is open. | Open the phone screen first. |
request_too_large (HTTP 413)
請求超過大小限制。
處理方式(除非該行另有說明): Delete older machine backups or raise the limit, then retry.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
machine_backup_quota_exceeded | - | The workspace’s machine backup storage limit is reached. | 同上。 |
request_too_large | - | The request body is too large. | Reduce the size of the request body or upload in smaller parts. |
rate_limit_error (HTTP 429)
請求或嘗試次數過多。
處理方式(除非該行另有說明): Wait for the Retry-After interval (or back off exponentially) and retry.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
account_locked | retry | The account is temporarily locked. | 同上。 |
rate_limited | retry | The credential’s per-minute request rate limit is exceeded. | Wait for the retry-after delay, then retry. |
too_many_attempts | retry | Too many failed attempts from this address. Try again later. | 同上。 |
api_error (HTTP 500)
平臺側錯誤。
處理方式(除非該行另有說明): Retry with exponential backoff; the dependency is temporarily unavailable.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
admin_store | retry | Admin store failure. | 同上。 |
agent_machines_unimplemented | - | GET /v1/machines?agent_id is not served by bma-core yet. | Retry with exponential backoff; if it persists, report the request_id to support. |
agent_tools | - | The session’s agent tools do not compile. | Retry with exponential backoff; if it persists, report the request_id to support. |
assertion_failed | - | Could not establish the caller identity. | Retry with exponential backoff; if it persists, report the request_id to support. |
audit_outcome_unknown | - | The change was made but its audit event could not be committed; read the resource, then repeat. | Retry with exponential backoff; if it persists, report the request_id to support. |
audit_store | retry | The audit store failed. | 同上。 |
audit_unavailable | retry | Audit event not recorded. | 同上。 |
auth_unavailable | retry | The user directory is temporarily unavailable; retry. | 同上。 |
billing_store | retry | The billing store failed. | 同上。 |
binding_unavailable | retry | Cannot check the session binding. | 同上。 |
bma_bill_error | - | bma-bill answered with an error. | Retry with exponential backoff; if it persists, report the request_id to support. |
bma_bill_rejected | - | bma-bill rejected the platform credential. | Retry with exponential backoff; if it persists, report the request_id to support. |
bma_bill_request | - | The request to bma-bill could not be built. | Retry with exponential backoff; if it persists, report the request_id to support. |
bma_bill_response | - | bma-bill answered with an unreadable body. | Retry with exponential backoff; if it persists, report the request_id to support. |
bma_bill_unavailable | retry | bma-bill is unavailable. | 同上。 |
content_unavailable | retry | Cannot read the file content. | 同上。 |
dashboard_store | retry | Dashboard session store failure. | 同上。 |
dependency_unavailable | retry | The service this operation depends on is not configured in this deployment. | 同上。 |
encode_response | - | Response could not be encoded. | Retry with exponential backoff; if it persists, report the request_id to support. |
event_unavailable | retry | Event not published. | 同上。 |
executor_error | - | The executor reported an error. | Retry with exponential backoff; if it persists, report the request_id to support. |
executors_store | retry | Credential store unavailable. | 同上。 |
files_store | retry | Record final reply. | 同上。 |
fixture_invalid | - | The fixture is not valid. | Retry with exponential backoff; if it persists, report the request_id to support. |
fixture_unavailable | retry | Cannot read the fixture. | 同上。 |
ingest_failed | - | The event could not be ingested. | Retry with exponential backoff; if it persists, report the request_id to support. |
internal | - | An unclassified error; the message is fixed because the cause may carry internals. | Retry with exponential backoff; if it persists, report the request_id to support. |
listing_unavailable | retry | Cannot list the session files. | 同上。 |
machine_capabilities_invalid | - | Machine capabilities are not an object. | Retry with exponential backoff; if it persists, report the request_id to support. |
machines_store | retry | The machine store is unavailable. | 同上。 |
mcp_channel_not_served | - | The raw MCP channel is not served by this service yet. | Retry with exponential backoff; if it persists, report the request_id to support. |
mcp_store | - | The MCP store is unavailable. | Retry with exponential backoff; if it persists, report the request_id to support. |
model_catalog_unavailable | retry | The organization’s own models could not be read for the model list. | 同上。 |
model_grant_unavailable | retry | Could not check model access. | 同上。 |
model_limits_unavailable | retry | The model’s provider metadata could not be read. | Retry later; if it persists, contact support with the request_id. |
model_route_unavailable | retry | The route of the organization’s own model could not be resolved; the call is never sent to the platform instead. | 同上。 |
mount_failed | - | The executor could not mount the session files. | Retry with exponential backoff; if it persists, report the request_id to support. |
password_hash | - | Password hashing failed. | Retry with exponential backoff; if it persists, report the request_id to support. |
peer_error | - | A peer replica of the platform answered with an error. | Retry with exponential backoff; if it persists, report the request_id to support. |
peer_unavailable | retry | A peer replica of the platform is unreachable. | 同上。 |
placement_store | retry | Placement store unavailable. | 同上。 |
project_directory_missing | - | Project directory is not configured. | Retry with exponential backoff; if it persists, report the request_id to support. |
project_directory_unavailable | retry | Project directory is unavailable. | 同上。 |
provider_credential_unavailable | retry | The organization’s provider key could not be opened. | 同上。 |
provider_error | - | The machine provider failed. | Retry with exponential backoff; if it persists, report the request_id to support. |
provider_unconfigured | - | The model provider is not configured. | Retry with exponential backoff; if it persists, report the request_id to support. |
realtime_store | retry | The realtime store failed. | 同上。 |
s3_unreachable | retry | Object store unreachable. | 同上。 |
session_route_unavailable | retry | The model route of the session is not configured or no longer available. | 同上。 |
session_store | retry | The session store is unavailable. | 同上。 |
sign_failed | - | Could not sign the access token. | Retry with exponential backoff; if it persists, report the request_id to support. |
skill_archive | - | The skill could not be stored. | Retry with exponential backoff; if it persists, report the request_id to support. |
skill_store_unavailable | retry | The skill could not be stored. | 同上。 |
skills_store | retry | Skill store unavailable. | 同上。 |
streaming_unsupported | - | The response cannot be streamed. | Retry with exponential backoff; if it persists, report the request_id to support. |
terminal_machine_invalid | - | The terminal session’s machine id is not a machine id. | Retry with exponential backoff; if it persists, report the request_id to support. |
terminal_relay_unavailable | retry | The terminal relay could not be reached. | 同上。 |
token_sign | - | Could not issue the token. | Retry with exponential backoff; if it persists, report the request_id to support. |
tools_store | retry | Tools store unavailable. | 同上。 |
unimplemented | - | The operation is not available on this deployment or view. | Retry with exponential backoff; if it persists, report the request_id to support. |
unmount_failed | - | The executor could not unmount the session files. | Retry with exponential backoff; if it persists, report the request_id to support. |
upstream_request | - | Could not build the upstream request. | Retry with exponential backoff; if it persists, report the request_id to support. |
upstream_unavailable | retry | The upstream service is unavailable. | 同上。 |
upstream_unreachable | retry | The model provider could not be reached. | 同上。 |
vault_store | retry | The vault store failed. | 同上。 |
timeout_error (HTTP 504)
上游或機器未在時限內響應。
處理方式(除非該行另有說明): Retry with exponential backoff; the operation may have continued, so read the resource first.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
desktop_agent_timeout | retry | The desktop agent did not answer in time. | 同上。 |
machine_resume_timeout | retry | The machine is still resuming. | 同上。 |
terminal_internal_error | retry | The machine did not attach the terminal in time. | 同上。 |
overloaded_error (HTTP 529)
平臺或其依賴暫時過載。
處理方式(除非該行另有說明): Retry with exponential backoff.
| 錯誤碼 | 重試 | 含義 | 處理方式(英文) |
|---|---|---|---|
auth_unavailable | retry | The user directory is temporarily unavailable; retry. | 同上。 |
control_unconfirmed | retry | The executor did not confirm the control request. | Retry the same request after a short delay. |
desktop_owner_moving | retry | The desktop session is moving between replicas; retry. | 同上。 |
desktop_owner_unreachable | retry | The replica serving this desktop session is not reachable; retry. | 同上。 |
dispatch_failed | retry | The executor did not answer. | 同上。 |
machine_capacity_exhausted | retry | The machine provider has no room (guest memory) to start or resume this sandbox right now. | Retry after the Retry-After delay; the machine and its data are kept. |
machine_creation_suspended | retry | The pool’s last machines of this template all failed to start; creating more is suspended for a backoff period. | Retry after the time the message gives; check failure_report of the failed machines for why they did not start. |
process_anchors_unavailable | retry | Process anchors are unavailable; retry. | 同上。 |
provider_unavailable | retry | The machine provider is busy; retry later. | 同上。 |