Skip to main content
err:unkey:application:deployment_not_running
You asked to stop a deployment that isn’t running. You can only stop a deployment that’s ready and running. You get HTTP 412.
Example response

Likely causes

  • The deployment is already stopped.
  • The deployment is still building.
  • The deployment failed.
A deployment that’s in the middle of stopping returns err:unkey:application:deployment_is_stopping instead.

How to fix

  1. Read the deployment with deployments.getDeployment. stop is in its availableActions only when the call would succeed.
  2. If it’s already stopped, there’s nothing to do.
  3. If it’s still building, wait for status to reach ready.
Last modified on October 6, 2026