Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
Code Commits Issues Pull requests Wiki Builds Discussions Projects Insights Search Files 21 branches · 34 tags three.ws / data / skills / metamask-agent-wallet / references / errors.md 7.3 KB
Code Raw Blame Permalink Error Codes
This reference lists error codes the CLI actually emits. SDK-only or remapped codes are noted where relevant. Workflows for diagnosing failures live in ../workflows/troubleshooting.md.
Auth Errors
Code
Meaning
ALREADY_AUTHENTICATED
Valid session already exists; run mm logout before logging in again
AUTH_FAILED
Authentication failed (includes missing refresh token cases)
AUTH_ERROR
Generic authentication error (includes missing auth token cases)
TOKEN_INVALID
Invalid CLI token, token pair, or project ID
TOKEN_REFRESH_FAILED
Failed to refresh token
PAIRING_TIMEOUT
Login pairing timed out
PAIRING_EXPIRED
Pairing session expired
INVALID_OTP
Invalid one-time password
MWP_TIMEOUT
Mobile Wallet Protocol timeout
MWP_CANCELLED
Mobile Wallet Protocol cancelled (pairing aborted)
LOGOUT_FAILED
Logout operation failed (includes token revoke failures)
Validation Errors
Code
Meaning
MISSING_FLAG
Required flag is missing in headless mode
MISSING_INPUT
Required input is missing
MISSING_CHAIN
Chain value is missing
MISSING_CHAIN_ID
Chain ID is missing
INVALID_CHAIN
Chain value is invalid
MISSING_TO
Recipient address is missing
INVALID_TO
Recipient address is invalid
INVALID_DATA
Transaction data is invalid
INVALID_INPUT
Invalid user input
INVALID_QUANTITY
EVM quantity is invalid
INVALID_LIMIT
Invalid limit value
INVALID_INTERVAL
Invalid time interval
INVALID_TIMESTAMP
Invalid timestamp
INVALID_ASSET_ID
Invalid asset identifier
MISSING_ASSET_IDS
Missing asset IDs
MISSING_ASSET_TYPE
Missing asset type
MISSING_QUERY
Missing search query
MISSING_WALLET_REF
Missing wallet reference
MISSING_TRANSACTION_PAYLOAD
Transaction payload is missing
INVALID_TRANSACTION_PAYLOAD
Transaction payload is invalid
MISSING_TYPED_DATA
EIP-712 typed data payload is missing
INVALID_TYPED_DATA
EIP-712 typed data payload is invalid
CHAIN_ID_MISMATCH
Typed-data domain chain ID differs from --chain-id
INVALID_MNEMONIC
BYOK mnemonic is invalid
Wallet Errors
Code
Meaning
MISSING_MNEMONIC
BYOK wallet mode is missing a mnemonic
MNEMONIC_LOCKED
Mnemonic unlock failed after maximum attempts
WRONG_PASSWORD
Current password is incorrect
ALREADY_ENCRYPTED
Mnemonic is already password-encrypted (use wallet password change instead)
NOT_ENCRYPTED
Mnemonic is not encrypted (use wallet password set instead)
PASSWORD_MISMATCH
Password confirmation does not match
EMPTY_PASSWORD
Empty password provided
WALLET_NOT_FOUND
Wallet not found
WALLET_ERROR
Wallet provider or wallet operation error (includes on-chain reverts and network failures from wallet paths)
WALLET_METADATA
Wallet metadata error
WRONG_NAMESPACE
Wrong namespace for wallet
UNSUPPORTED_NAMESPACE
Unsupported wallet namespace
NO_AUTH_TOKEN
Missing authentication token for wallet operations
NO_PROJECT_ID
Project ID not configured for wallet
MISSING_PROJECT_ID
Project ID is not configured
INVALID_TRADING_MODE
Invalid trading mode; use guard or beast
ALREADY_SET_TRADING_MODE
Trading mode is already set to the requested value
Command Errors
Code
Meaning
ABORTED
Operation aborted by user
NOT_INITIALIZED
Project not initialized — run mm init
NO_MNEMONIC
Mnemonic not stored
NO_TTY
No TTY available for interactive prompts
MISSING_ID
Missing ID parameter
MISSING_QUOTE_ID
Missing quote ID
MISSING_SWAP_PARAMS
Missing swap parameters
COMING_SOON
Feature not yet available (e.g. mm login qr on production)
INVALID_CONFIG_KEY
Unknown config key passed to mm config get or mm config set
INVALID_CONFIG_VALUE
Invalid value for a config key (e.g. env not in `prod
Swap & Bridge Errors
Code
Meaning
NO_QUOTES
No swap or bridge quotes available
BRIDGE_API_ERROR
Bridge API error
TOKEN_NOT_FOUND
Token not found
INVALID_SWAP_PARAMS
Invalid swap parameters
NATIVE_ASSET_UNSUPPORTED
Native asset not supported for this swap route
QUOTE_PERSIST_FAILED
Failed to persist quote
QUOTE_NOT_FOUND
Quote not found
EXECUTE_FAILED
Swap execution failed
NO_TRADE_DATA
No trade data available
STATUS_UNAVAILABLE
Swap status unavailable
SWAP_ERROR
Generic swap error
Perps Errors
Code
Meaning
UNSUPPORTED_VENUE
Unsupported perpetual venue
UNSUPPORTED_NETWORK
Unsupported network for perps
UNSUPPORTED_ROUTE
Unsupported deposit or withdraw route
UNSUPPORTED_ASSET
Unsupported asset
UNSUPPORTED_SOURCE_CHAIN
Unsupported source chain for perps deposit
INVALID_SYMBOL
Unknown perpetual market symbol
INVALID_AMOUNT
Invalid amount
INVALID_SIZE
Invalid position size
INVALID_LEVERAGE
Invalid leverage value
INVALID_PRICE
Invalid price
INVALID_SLIPPAGE
Invalid slippage value
INVALID_ADDRESS
Invalid address
INSUFFICIENT_BALANCE
Insufficient balance
POSITION_NOT_FOUND
Position not found
QUOTE_FAILED
Quote generation failed
ORDER_REJECTED
Order rejected
CANCEL_FAILED
Order cancellation failed
SIGNING_FAILED
Signing operation failed
WITHDRAW_FAILED
Withdrawal failed
DEPOSIT_FAILED
Deposit failed
HYPERLIQUID_ERROR
Hyperliquid protocol error
PERPS_ERROR
Generic perpetuals error
Predict Errors
Code
Meaning
PREDICT_SETUP_REQUIRED
Predict setup required before operation
PREDICT_AUTH_REQUIRED
Predict authentication required
PREDICT_AUTH_INVALID
Predict credentials invalid or incomplete
PREDICT_RELAYER_CONFIG_REQUIRED
Relayer configuration required
PREDICT_INVALID_DEPOSIT_AMOUNT
Invalid deposit amount
PREDICT_WITHDRAW_ZERO
Withdraw amount must be greater than zero
PREDICT_WITHDRAW_INSUFFICIENT_BALANCE
Withdraw amount exceeds deposit wallet pUSD balance
PREDICT_FUNDING_CHAIN_UNSUPPORTED
Funding chain not supported
PREDICT_INSUFFICIENT_BALANCE
Insufficient Predict balance
PREDICT_INSUFFICIENT_ALLOWANCE
Insufficient Predict allowance
PREDICT_INSUFFICIENT_FUNDING_BALANCE
Insufficient funding balance for Predict deposit
PREDICT_CANCEL_TARGET_REQUIRED
Cancel target not specified
PREDICT_WALLET_STATE_REQUIRED
Wallet state required for Predict
PREDICT_METHOD_UNAVAILABLE
Predict method not available
PREDICT_DEPOSIT_FAILED
Predict deposit failed
PREDICT_ERROR
Generic Predict error
PREDICT_GEOBLOCKED
Polymarket is not available in your region; Predict features cannot be used from this location. Emitted by mm predict setup (region guard) and surfaced by mm predict geoblock
UNSUPPORTED_PREDICT_CHAIN
Predict chain not supported
Network & Filesystem Errors
Code
Meaning
NETWORK_UNREACHABLE
Network unreachable
RESET_FAILED
Failed to reset CLI session