NO_ROUTE
No route: No provider supports this route, or every provider that does failed to quote.
| HTTP status | Retry |
|---|---|
404 |
with backoff |
Where it comes from: GET /v1/quote.
Causes#
- No loaded provider handles the pair — for example a Solana → EVM route when deBridge and LI.FI are both unavailable. (A same-token swap on one chain is
INVALID_PARAMS.)error.details.errorssays why each provider returned nothing. - Every eligible provider failed or timed out (each provider has 8 s by default).
- Liquidity is insufficient or price impact is too high (mapped from provider errors).
- LayerHop's route health probes see this chain's routes failing (
routeHealthinGET /v1/chains); the message then says "Routes into are currently unavailable". - The chain is reachable, but not for this token pair: e.g. Pharos routes only through LI.FI, which bridges its USDC and native coin to Base or Arbitrum but finds no route to ETH on Ethereum.
How to fix#
- Use
error.details.suggestionswhen present (live mode): alternatives LayerHop just checked, best first.dst_token= the same payment into the destination chain's stablecoin or native coin;src_token= pay with the source chain's stablecoin or native coin worth the same;via_hub= two signed steps through USDC on Arbitrum, Base or Ethereum (steps[0], thensteps[1]). Amounts are base units anddstAmountis an estimate: quote each leg again before building it. - Check Providers for which provider covers which route.
- Retry after a short delay; transient provider outages are common.
- Try a different amount or a more liquid token (USDC, native coin).
Example response#
JSON
{
"error": {
"code": "NO_ROUTE",
"message": "No provider returned a quote",
"requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
"docsUrl": "https://docs.layerhop.com/errors/NO_ROUTE"
}
}See Error handling & retries for a retry strategy, and the error catalog for every code.
Last updated