HCA_SESSION_INVALID
What HCA_SESSION_INVALID means, why HcaError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
HcaErrorNot retryable
@ensforge/hca
What happened
The HCA session is expired, revoked or for another resolver.
What to show users
| Title | Message | Action |
|---|---|---|
| Session ended | Your session has expired or was revoked. | Start a new session. |
How to fix
Authorize a new session with hca.authorizeSession.
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
No action names this code in its documented errors.
Catch it
Check error instanceof HcaError && error.code === "HCA_SESSION_INVALID". See Handle errors.
Was this page helpful?