> The index of all pages is at https://docs.afffast.com/llms.txt.

# request_timeout

The request took too long and was stopped. Send a narrower request, for example a shorter date range or more filters, and try again.

HTTP status: **504**. Error type: `api_error`.

The request took too long and was stopped. Send a narrower request, for example a shorter date range or more filters, and try again.

## Example

```json
{
  "error": {
    "type": "api_error",
    "code": "request_timeout",
    "message": "The request took too long and was stopped. Send a narrower request, for example a shorter date range or more filters, and try again.",
    "doc_url": "https://docs.afffast.com/errors/request-timeout",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}
```

## Causes

- A database query ran longer than its time limit (15 seconds for a read).
- The request ran longer than the request deadline (60 seconds). A CSV export of the conversions and a file import have no request deadline.
- A bulk write (a delete or a restore of an object with many children) ran longer than its time limit (60 seconds).

## How to fix

- Send a narrower request. Use a shorter date range, more filters or a smaller `limit`.
- For a CSV file of conversions, use the `Accept: text/csv` export. It streams the rows and has no request deadline.
- The API does not store this answer for an `Idempotency-Key`. Send the request again with the same key after you narrow it.
- If the error stays, contact support. Send the `request_id` of the response.
