# range-in-future

The time range **reaches into the future**.

- **Status:** `422 Unprocessable Entity`
- **Route:** `POST /api/v1/generate-events`
- **Description:** `range reaches into the future: expected to on or before now`
- **Details:** **`to`**, the bound as the request gave it.

## Why It Happens

`to` lies after the moment SynthEvents receives the request.

## How to Fix It

Let the range end at the moment of the request or before. To cover the current year up to today, for example, end it at the beginning of today.

## Example

For a range that ends in 2030, SynthEvents answers:

```json
{
  "type": "error",
  "data": {
    "code": "https://docs.synthevents.io/errors/range-in-future",
    "description": "range reaches into the future: expected to on or before now",
    "details": {
      "to": "2030-01-01T00:00:00Z"
    }
  }
}
```
