reachthingsDocs
EN
Dashboard
ReferenceErrors
Reference

Errors

Three kinds of failure, in three places: HTTP errors before a tool runs, tool errors before a command exists, and command statuses after it does.

On this page

Tool errors

Returned as isError: true with structuredContent.command_id: null and an error.code. Checks run in this order: device access → action permission → capability support → operator policy → parameter validation. Nothing has been sent to a manufacturer when you get one of these.

CodeWhenWhat to doMessage
DEVICE_NOT_ACCESSIBLEUnknown device, or not granted to this agentCall list_devices; ask the user to grant accessThe requested device was not found or is not accessible from this connection.
PERMISSION_DENIEDDevice is granted, this action is not (or the grant was revoked)Ask the user to allow the action in the dashboardThis connection is not allowed to run the requested capability on this device.
ACTION_NOT_SUPPORTEDThe device can't do thisCheck get_device for the allowed capabilitiesThis device does not support the requested capability.
POLICY_BLOCKEDBrand, region or action is halted by the operator, or the connection is disconnectedTell the user; nothing to retry until the policy or connection changesThis action is currently blocked by policy or the connection is disconnected. It cannot be run right now.
INVALID_PARAMETERSFails the action's schema or range, or has fields the schema does not declareFix and resend with a new keyThe request parameters have an invalid format or are out of range.
REQUEST_KEY_CONFLICTSame key, different device, action or parametersUse a new request_keyA different command already exists with the same request_key. Use a new request_key.
COMMAND_NOT_ACCESSIBLEUnknown command or not yoursCheck the command_idThe requested command was not found or is not accessible from this connection.
QUOTA_EXCEEDEDAll device runs included in the current subscription period are usedReads still work; the owner sees usage and the period end under Settings & billing. See Quotas & limitsThis account has used all device runs included in its current subscription period. Check usage and the period end on the Settings & billing page. State reads still work.
SUBSCRIPTION_REQUIREDThe owner's trial or subscription has ended (or never started)Tell the owner; runs resume once a plan is active. Cached state and run history still workThis account has no active trial or subscription, so new device runs are declined. The owner can review the subscription on the Settings & billing page. Past runs, cached state and run history still work.
DEVICE_INACTIVEThe owner hasn't activated this device for useAsk the owner to activate it under My devices (plans limit how many devices are active)This device is not activated for use. The owner can activate it under My devices in the console (plans limit how many devices are active at once).
SCHEDULE_INVALIDTime in the past, bad weekday, end date before the first run, or no runs leftFix the schedule definitionThe schedule time or recurrence is invalid.
TIMEZONE_REQUIREDNo IANA timezone, or an abbreviation like KSTAsk the user for their timezone (e.g. Asia/Seoul) and retryThe timezone could not be determined. Ask the user for their IANA timezone (e.g. Asia/Seoul) and retry with timezone set. The server timezone is never used as a fallback.
SCHEDULE_NOT_ACCESSIBLEUnknown schedule or not created by this agentCheck the schedule_id with list_schedulesThe requested schedule was not found or is not accessible from this connection.
CONSENT_REQUIREDThe owner hasn't agreed to share device information with this service, or withdrew that consentShow the owner the consent_url from the response; they review it in the console (sign-in required). Do not retry in a loop, and never pass consent as a tool argument — it is not acceptedThe owner has not yet agreed to share device information with this service, or has withdrawn that consent. No device information is available until the owner reviews it in the Reachthings console (consent_url). You cannot agree on the owner's behalf.
DEVICE_NOT_ACCESSIBLE
WhenUnknown device, or not granted to this agent
What to doCall list_devices; ask the user to grant access
MessageThe requested device was not found or is not accessible from this connection.
PERMISSION_DENIED
WhenDevice is granted, this action is not (or the grant was revoked)
What to doAsk the user to allow the action in the dashboard
MessageThis connection is not allowed to run the requested capability on this device.
ACTION_NOT_SUPPORTED
WhenThe device can't do this
What to doCheck get_device for the allowed capabilities
MessageThis device does not support the requested capability.
POLICY_BLOCKED
WhenBrand, region or action is halted by the operator, or the connection is disconnected
What to doTell the user; nothing to retry until the policy or connection changes
MessageThis action is currently blocked by policy or the connection is disconnected. It cannot be run right now.
INVALID_PARAMETERS
WhenFails the action's schema or range, or has fields the schema does not declare
What to doFix and resend with a new key
MessageThe request parameters have an invalid format or are out of range.
REQUEST_KEY_CONFLICT
WhenSame key, different device, action or parameters
What to doUse a new request_key
MessageA different command already exists with the same request_key. Use a new request_key.
COMMAND_NOT_ACCESSIBLE
WhenUnknown command or not yours
What to doCheck the command_id
MessageThe requested command was not found or is not accessible from this connection.
QUOTA_EXCEEDED
WhenAll device runs included in the current subscription period are used
What to doReads still work; the owner sees usage and the period end under Settings & billing. See Quotas & limits
MessageThis account has used all device runs included in its current subscription period. Check usage and the period end on the Settings & billing page. State reads still work.
SUBSCRIPTION_REQUIRED
WhenThe owner's trial or subscription has ended (or never started)
What to doTell the owner; runs resume once a plan is active. Cached state and run history still work
MessageThis account has no active trial or subscription, so new device runs are declined. The owner can review the subscription on the Settings & billing page. Past runs, cached state and run history still work.
DEVICE_INACTIVE
WhenThe owner hasn't activated this device for use
What to doAsk the owner to activate it under My devices (plans limit how many devices are active)
MessageThis device is not activated for use. The owner can activate it under My devices in the console (plans limit how many devices are active at once).
SCHEDULE_INVALID
WhenTime in the past, bad weekday, end date before the first run, or no runs left
What to doFix the schedule definition
MessageThe schedule time or recurrence is invalid.
TIMEZONE_REQUIRED
WhenNo IANA timezone, or an abbreviation like KST
What to doAsk the user for their timezone (e.g. Asia/Seoul) and retry
MessageThe timezone could not be determined. Ask the user for their IANA timezone (e.g. Asia/Seoul) and retry with timezone set. The server timezone is never used as a fallback.
SCHEDULE_NOT_ACCESSIBLE
WhenUnknown schedule or not created by this agent
What to doCheck the schedule_id with list_schedules
MessageThe requested schedule was not found or is not accessible from this connection.
CONSENT_REQUIRED
WhenThe owner hasn't agreed to share device information with this service, or withdrew that consent
What to doShow the owner the consent_url from the response; they review it in the console (sign-in required). Do not retry in a loop, and never pass consent as a tool argument — it is not accepted
MessageThe owner has not yet agreed to share device information with this service, or has withdrawn that consent. No device information is available until the owner reviews it in the Reachthings console (consent_url). You cannot agree on the owner's behalf.

Reason codes

Problems after a command exists are not errors: the command ends in rejected, failed, cancelled, expired or outcome_unknown with one of these reason_code values. See Command lifecycle.

reason_codeMeaning
approval_deniedApproval denied
permission_revokedAccess was revoked
policy_blockedBlocked by policy
precondition_not_metPrecondition not met
provider_failedManufacturer reported a failure
connector_failed_before_sendConnector error before sending
user_cancelledCancelled by you
approval_expiredApproval expired
dispatch_expiredNot sent in time
send_outcome_unknownSent, but the result is unknown
verification_timeoutVerification timed out
evidence_conflictEvidence conflict
approval_denied
MeaningApproval denied
permission_revoked
MeaningAccess was revoked
policy_blocked
MeaningBlocked by policy
precondition_not_met
MeaningPrecondition not met
provider_failed
MeaningManufacturer reported a failure
connector_failed_before_send
MeaningConnector error before sending
user_cancelled
MeaningCancelled by you
approval_expired
MeaningApproval expired
dispatch_expired
MeaningNot sent in time
send_outcome_unknown
MeaningSent, but the result is unknown
verification_timeout
MeaningVerification timed out
evidence_conflict
MeaningEvidence conflict

HTTP errors

StatusWhenWhat to do
401No token, expired token, wrong audience or issuer. The response carries WWW-Authenticate: Bearer resource_metadata=…Run the OAuth flow again; MCP SDKs do this for you
403Token is valid but the grant was revoked, or the scope does not cover the toolAsk the user to re-add the agent, or request the missing scope
404Unknown pathUse POST ${esc(deps.public_url)}/mcp
429 / 5xxManufacturer rate limits surface as connector_error inside tool results, not as HTTP errors; HTTP 5xx means Reachthings itself failedRetry reads; never resend a control command without its original request_key
401
WhenNo token, expired token, wrong audience or issuer. The response carries WWW-Authenticate: Bearer resource_metadata=…
What to doRun the OAuth flow again; MCP SDKs do this for you
403
WhenToken is valid but the grant was revoked, or the scope does not cover the tool
What to doAsk the user to re-add the agent, or request the missing scope
404
WhenUnknown path
What to doUse POST ${esc(deps.public_url)}/mcp
429 / 5xx
WhenManufacturer rate limits surface as connector_error inside tool results, not as HTTP errors; HTTP 5xx means Reachthings itself failed
What to doRetry reads; never resend a control command without its original request_key