# DURATION_TOO_SHORT

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What DURATION_TOO_SHORT means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/DURATION_TOO_SHORT

<ErrorMeta errorClass="InvalidInputError" href="/docs/reference/errors/invalid-input-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The duration is shorter than the registrar's minimum.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Duration too short | The registration period is shorter than the minimum. | Choose a longer duration. |

## Retry safety [#retry-safety]

Retrying the same call fails the same way until the cause is fixed (`retryable: false`).

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`registration.commit`](/docs/reference/sdk/registration/commit) | for invalid input. |
| [`registration.getPrice`](/docs/reference/sdk/registration/get-price) | for invalid input. |
| [`registration.register`](/docs/reference/sdk/registration/register) | for invalid input. |
| [`registration.renew`](/docs/reference/sdk/registration/renew) | for invalid input. |

## Catch it [#catch-it]

`Errors.hasCode("DURATION_TOO_SHORT")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).