1012 Service Restart
The server is terminating the connection because it is restarting. The client should reconnect after a brief delay.
On this page
When You See This Code
The server is performing a planned restart — for example, during a deployment or configuration reload. The connection will be available again shortly.
How to Fix
Implement automatic reconnection with a short delay (1-5 seconds). This code signals that reconnecting is expected and should succeed once the server is back up.
Specification
Compare With
Guides
Glossary
Frequently Asked Questions
What is WebSocket 1012 Service Restart?
The server is terminating the connection because it is restarting. The client should reconnect after a brief delay.
When do you see WebSocket 1012 Service Restart?
The server is performing a planned restart — for example, during a deployment or configuration reload. The connection will be available again shortly.
How to fix WebSocket 1012 Service Restart?
Implement automatic reconnection with a short delay (1-5 seconds). This code signals that reconnecting is expected and should succeed once the server is back up.