Common Issues
Headers
The API is specific about request header validation. In particular, ensure that youraccept and content-type headers only include the value application/json. For a complete example of properly formatted request headers, see the authentication section of our FAQs.
Rate Limits
Most API keys have a default rate limit of 3 requests per second (RPS). If you exceed the rate limit supported by an API key you can expect to receive an HTTP 429 error. If you receive a 429 error, we recommend pausing all requests from your API key and then retrying your requests. If you require a higher rate limit than what your API key is currently provisioned for, please reach out to Uniswap Developer Support. For more information on rate limits, see our FAQs.Error Code Troubleshooting
404 No Quotes Available
The most commonly encountered HTTP error is an HTTP 404 with a message “No quotes available” from the/quote endpoint. This error can happen for a variety of reasons related to request syntax, rather than there being no actual route between the specified tokens. In order of most common to less common reasons for receiving this error:
- The
amountis too low to be quoted by UniswapX. If a quote is requested for only UniswapX (see Swap Routing for more on protocol selection), and the requested chain is an L2 (e.g. not Mainnet), the amount must exceed a threshold value in order to be quoted (see details here). - The specified chain is not supported by UniswapX. UniswapX has limited chain support, detailed here.
- The specified token(s) do not match the specified chain. The token addresses specified must be those belonging to the token on the given chain (ex. the USDC address on Mainnet is different than that on Base).
- A combined bridge and swap quote is requested. The API can provide a quote for either a bridge (different input/output chains, same token) or a swap (same chain, different input/output tokens), but not both simultaneously. For a list of bridgeable tokens, see Bridgeable Tokens.
400 Request Validation Error
Request validation errors are returned when a request does not contain the minimum required set of fields or has other syntactical errors. Some examples are a required field (ex.autoSlippage in the /quote endpoint) is not populated, or an address is missing a character (eg. is 39 characters long instead of 40). These errors typically include a specific error message which describes the field which could not be interpreted.