AiderDocs
Open app

Security

Errors

Every contract and CLI error, when it happens and what to do.

Contract errors

These come from the Aider contract. The CLI shows them in error and the app shows a plain-English message. Errors marked v2 exist only in version 2 of the contract.

ErrorWhenWhat to do
NotWalletOwnerSomeone other than the owner called an owner functionUse the owner's wallet.
WalletPausedAn agent paid or requested while the wallet is pausedAgent: stop and tell the user. Owner: resume when ready.
AgentNotActiveThe key was never added as an agent of this walletOwner: add the agent's address.
AgentRevokedErrorThe agent was revoked (also when approving a voided request in v2)Agent: stop. Owner: re-enable only if you trust it.
AgentExpiredThe agent's expiry passedOwner: extend it with Edit limits.
ZeroAddressThe recipient or agent address is 0x0…0Use a real address.
InvalidRecipient (v2)The recipient is the Aider contract or the USDC tokenPay the recipient's own address.
ZeroAmountThe amount is 0Use a positive amount.
RecipientBlockedThe recipient is on the blocklistDon't pay it.
RecipientNotAllowedAllowlist mode and the recipient isn't on itOwner: allowlist it, if you want to.
OverPerPaymentLimitThe amount is over the per-payment limitThe CLI turns this into an approval request.
OverDailyLimitToday's spending would go over the daily limitThe CLI turns this into an approval request.
InsufficientBalanceThe wallet's available balance is too lowOwner: deposit. No request is created.
InvalidTTLA request's TTL is 0 (or over 7 days in v2)Use 1 minute to 7 days.
TooManyOpenRequests (v2)The agent already has 10 open requests on this walletOwner: decide on some first.
RequestNotFound (v2)No request with that idUse the id from aidr pay.
RequestNotPendingThe request was already approved, rejected or releasedNothing to do.
RequestExpiredErrorApproving after the request's TTLRelease it; the agent can ask again.
RequestNotExpiredYetReleasing a request that can still be approvedWait for the TTL, or reject it as the owner.
OwnerCannotBeAgent (v2)Adding the owner's own address as an agentUse a separate key for the agent.
InvalidExpiry (v2)An expiry date already in the pastPick a future date, or "never".
WALLET_NOT_FOUNDThe wallet id doesn't existCheck the id.
USDC_TRANSFER_FAILED, USDC_TRANSFER_FROM_FAILEDThe USDC token refused a transferCheck balances and the USDC approval.

CLI errors

These come from aidr itself; nothing reached the contract.

ErrorWhenWhat to do
InvalidAmountThe amount isn't a positive number with at most 6 decimalsUse 0.05, 1 or '$0.05'.
MemoRequired, MemoTooLongNo memo, or more than 256 bytesWrite a short, honest memo.
InvalidAddressThe recipient isn't a valid addressCheck it.
UsageErrorWrong arguments, for example an unquoted memoQuote the memo.
Timeoutaidr wait --timeout ran outWait again later; don't create a duplicate request.
InsufficientGasFundsThe agent's address has no USDC for gasSend it a little USDC.
NonceConflictTwo transactions from the same key at onceRun one payment at a time.
RpcError, ReceiptTimeoutNetwork trouble, or no confirmation in timeCheck the explorer link or aidr history before retrying.
NotLinkedThe owner hasn't added this agent yetOpen the link aidr setup printed (it's in hint) and click Add agent.
AmbiguousWalletThe agent was added to more than one walletRun aidr setup --wallet <id> to pick one.
NotConfigured, KeyMissing, KeyMismatch, ConfigInvalidaidr isn't set up on this machineRun aidr setup.

Next

Avoid most of these with the best practices.

Built with Arc Studio