Home Docs Error help

The expiry duration is not valid

Error code bad_expires_in_seconds
Publishing a paste

The expiry duration is not valid

bad_expires_in_seconds

The expiry duration sent by the page or app was not a valid number of seconds.

HTTP 400·Publishing a paste

What it means

What happened

The expiry duration sent by the page or app was not a valid number of seconds.

Why

Why it might have happened

  • The duration may be zero, negative, decimal, or missing.
  • A third-party client may have sent the wrong field type.
Next steps

What you can try

  1. Choose a normal expiry from the composer.
  2. Refresh the page if the expiry menu seems stuck.
  3. If you use an app, update it and try again.
Related
Still stuck?

Get help

If the error keeps happening, send feedback or contact us and include bad_expires_in_seconds plus what you were trying to do.

Contact and feedback options