Skip to content
PlutoDocs

Errors and fixes

Every error the app can show, its exact wording, and what happens next. Search by code or by what you saw.

Every error, and what the app does nextLive demo, running the app's own code
  • INVALID_PARAMS“Something's off with this input.”Your inputHighlights the field
  • UNSUPPORTED_TOKEN“This token can't be traded on Pluto.”Your inputBlocks the action
  • NO_ROUTE“No route found for this pair.”MarketDisables the button
  • INSUFFICIENT_LIQUIDITY“Not enough liquidity. Try a smaller amount.”MarketSuggests half the amount
  • PRICE_IMPACT_TOO_HIGH“Price impact too high.”MarketDisables the button
  • QUOTE_EXPIRED“Price updated. Review and confirm.”MarketGets a new quote
  • SIMULATION_FAILED“This swap would fail: TRANSFER_FROM_FAILED”MarketBlocks the action
  • SLIPPAGE“Price moved. Review new quote.”MarketGets a new quote
  • RATE_LIMITED“Too many requests, retrying…”NetworkWaits, then retries
  • STATE_STALE“Network catching up…”NetworkRetries by itself
  • INTERNAL“Pluto is having trouble. Retrying…”NetworkRetries up to 3 times
  • STALE_ROOT“Refreshing proof…”PrivateRebuilds the proof
  • NULLIFIER_SPENT“This note was already spent. Resyncing…”PrivateResyncs notes
  • INVALID_PROOF“Proof failed. Please try again.”PrivateAsks you to retry
  • WALLET_REJECTED“Cancelled”WalletNothing, you cancelled
Source: src/lib/api/errors.ts → describeError()

Retries

Quotes try up to 3 times in all, then show the error:

How quotes retry
RATE_LIMITED: waits Retry-After
STATE_STALE: 1 s
INTERNAL, network: doubles + jitter

3 tries failed: the error shows

Source: src/features/swap/use-swap-quote.ts

A swap that hits QUOTE_EXPIRED re-quotes once, silently. If the new price is more than 0.5% worse, you review it first.

Reproduce any error

In a dev build, open Mock QA (bottom left) and pick a variant. It sets the Prefer header, so the mock answers with that error.

Forcing an error with Mock QA
Step 4 of 4
curl --get "http://127.0.0.1:4010/quote" \
  -H "Prefer: code=429, example=rateLimited" \
  --data "tokenIn=0x0000000000000000000000000000000000000000" \
  --data "tokenOut=0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65" \
  --data "amountIn=1"