Skip to main content
err:unkey:application:deployment_not_running
Example

What Happened?

You called stopDeployment on a deployment that is not running. Only a deployment in ready status has running instances that can be stopped. A deployment that is still building, failed, was skipped, superseded, or already stopped has nothing to stop. getDeployment reports the current status, and availableActions omits stop when the deployment is not running.

How To Fix

  1. Fetch the deployment with getDeployment and check status.
  2. Only call stop when the deployment is ready.
  3. If the deployment is already stopped, no action is needed.

Common Mistakes

  • Stopping a building deployment: Calling stop before the deployment reaches ready.
  • Stopping twice: Calling stop on a deployment that is already stopped or stopping.
Last modified on July 20, 2026