What happened
The API token has passed its expiry time.
How to fix it
Create a new token with cluck login or POST /v1/tokens, and consider a longer lifetime for CI.
Example response
{
"error": "HEN-2002",
"message": "Token expired",
"status": 401,
"request_id": "req_1bd5e7"
}
Should I retry?
No. Fix the request before sending it again.
| Code | HEN-2002 |
|---|---|
| HTTP status | 401 |
| Family | HEN-2xxx |
Related errors
HEN-2001: Not logged inHEN-2003: Token revokedHEN-2004: Insufficient pecking orderHEN-2005: IP not allowedHEN-2006: SSO required
Still stuck? Include the request_id when you contact support. Our hens can find it in about a second.