# INVALID_DURATION

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

What INVALID_DURATION 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/INVALID_DURATION

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

## What happened [#what-happened]

undefined is not a valid duration.

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

| Title | Message | Action |
| --- | --- | --- |
| Invalid duration | The chosen duration is not valid. |  |

## How to fix [#how-to-fix]

Durations are bigint seconds, e.g. Duration.years(1).

## 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 |
| --- | --- |
| [`primaryName.signClaim`](/docs/reference/sdk/primary-name/sign-claim) | when `expiresIn` is not between 1 and 3600 seconds. |

## Catch it [#catch-it]

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