Skip to content

Commit 519b043

Browse files
braden-clerkvictoriaxyzalexisintech
authored
(/maintenance-mode) add details to errors (#1724)
Co-authored-by: victoria <[email protected]> Co-authored-by: Alexis Aguilar <[email protected]>
1 parent ca5cdc2 commit 519b043

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

docs/maintenance-mode.mdx

+26-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,36 @@ title: Maintenance Mode
33
description: Learn about Clerk's Maintenance Mode.
44
---
55

6-
**Maintenance Mode** is a special operational state designed to ensure minimal disruption to signed-in users during critical database upgrades or outages.
6+
> [!IMPORTANT]
7+
> Maintenance mode will be deprecated in 2025 as we upgrade our infrastructure.
8+
9+
Once or twice per year, Clerk undergoes maintenance on its infrastructure and enters **Maintenance Mode**. During this time, users who are already signed in will not be signed out, and will continue to have access to your app. However, new sign-ups, sign-ins and user mutations will return an error. **Maintenance Mode** is a special operational state designed to minimize disruption for signed-in users during critical database upgrades or outages.
710

811
## Production instances
912

10-
Mutation methods (`POST`, `PATCH`, `PUT`, `DELETE`) will be rejected with a `503 Service Unavailable` status, along with an error message informing users that the system is temporarily unavailable. This includes all sign-up and sign-in attempts. Clerk's prebuilt components and the hosted Account Portal will display errors for these requests.
13+
Mutation methods (`POST`, `PATCH`, `PUT`, `DELETE`) will be rejected with a `SystemUnderMaintenance` error. This includes all new sign-ups and sign-ins.
14+
15+
Active sessions, and session refresh requests **are not** affected. This applies to `GET` requests as well as session refresh requests ([`/touch`](/docs/reference/frontend-api/tag/Sessions#operation/touchSession) and [`/tokens`](/docs/reference/frontend-api/tag/Sessions#operation/createSessionToken) endpoints). Users who are already signed in will not be signed out and will continue to have access to your app. However, any mutations to their user or org data will return the same `SystemUnderMaintenance` error.
16+
17+
### API errors
18+
19+
All mutations from both the Frontend API and the Backend API will return the following `SystemUnderMaintenance` error.
20+
21+
```json
22+
// 503 StatusServiceUnavailable
23+
{
24+
"shortMessage": "System under maintenance",
25+
"longMessage": "We are currently undergoing maintenance and only essential operations are permitted. We will be back shortly.",
26+
"code": "maintenance_mode"
27+
}
28+
```
29+
30+
### UI components
31+
32+
During **Maintenance Mode**, Clerk's UI components will display the following error for sign-ins, sign-ups, and all mutations to user and org data.
1133

12-
GET requests, as well as session refresh requests ([`/touch`](/docs/reference/frontend-api/tag/Sessions#operation/touchSession) and [`/tokens`](/docs/reference/frontend-api/tag/Sessions#operation/createSessionToken) endpoints), aren't affected. Users with active sessions (already signed in) will not be signed out, and will continue to have access to your app. However, any mutations to their user or org data will return the same `503` error.
34+
![The \<SignIn /> component with a maintenance mode error.](/docs/images/maintenance-mode/maintenance-mode-error-sm.png)
1335

1436
## Development instances
1537

16-
During this period, development instances will experience full downtime. Users will be unable to sign up or in, and already signed-in users will be signed out.
38+
For development instances, all requests will return a `SystemUnderMaintenance ` error, and the instance will be completely unavailable.
Loading
Loading

0 commit comments

Comments
 (0)