Home Docs Error help

The expiry time is not valid

Error code bad_expires_in
Publishing a paste

The expiry time is not valid

bad_expires_in

The custom expiry value was not in a format pastebin.ca understands.

HTTP 400·Publishing a paste

What it means

What happened

The custom expiry value was not in a format pastebin.ca understands.

Why

Why it might have happened

  • The value may be missing a unit such as h, d, w, or mo.
  • The value may be zero, negative, or too large.
Next steps

What you can try

  1. Use a simple value such as 1h, 7d, or 30d.
  2. Choose a preset expiry if you are unsure.
  3. Try publishing again.
Related
Still stuck?

Get help

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

Contact and feedback options