Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

USER_REJECTED

What USER_REJECTED means, why UserRejectedError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

UserRejectedErrorNot retryable
@ensforge/sdk

What happened

The user rejected the request.

What to show users

TitleMessageAction
Request cancelledYou cancelled the request in your wallet.

Retry safety

Retrying the same call fails the same way until the cause is fixed (retryable: false).

Actions that throw it

ActionWhen
approval.setDelegatewhen the user rejects the request.
approval.setOperatorwhen the user rejects the request.
approval.setTokenwhen the user rejects the request.
dns.claimwhen the user rejects the request.
dns.setRecordswhen the user rejects the request.
migration.migratewhen the user rejects the request.
name.reclaimwhen the user rejects the request.
name.setManagerwhen the user rejects the request.
name.setTtlwhen the user rejects the request.
name.transferwhen the user rejects the request.
permission.setRecordAccesswhen the user rejects the request.
plan.sendwhen the user rejects the request.
primaryName.setwhen the user rejects the request.
primaryName.signClaimwhen the user rejects the request.
record.setwhen the user rejects the request.
registration.commitwhen the user rejects the request.
registration.registerwhen the user rejects the request.
registration.renewwhen the user rejects the request.
registry.attachwhen the user rejects the request.
registry.deploywhen the user rejects the request.
registry.setUriwhen the user rejects the request.
registry.upgradewhen the user rejects the request.
resolver.createwhen the user rejects the request.
resolver.linkwhen the user rejects the request.
resolver.setwhen the user rejects the request.
resolver.upgradewhen the user rejects the request.
role.grantwhen the user rejects the request.
role.revokewhen the user rejects the request.
subname.createwhen the user rejects the request.
subname.removewhen the user rejects the request.
subname.updatewhen the user rejects the request.
wrapper.setChildFuseswhen the user rejects the request.
wrapper.setFuseswhen the user rejects the request.
wrapper.unwrapwhen the user rejects the request.
wrapper.wrapwhen the user rejects the request.
hca.authorizeSessionwhen the owner declines.

Any write can fail with UserRejectedError: it is part of Errors.WriteError.

Catch it

Errors.hasCode("USER_REJECTED") narrows to this error. See Handle errors.

Was this page helpful?