err:unkey:application:deployment_not_stoppedExample
What Happened?
You calledstartDeployment on a deployment that is not in stopped status. Start only applies to a deployment that was previously stopped; a deployment that is building, ready, or in another state has nothing to start.
getDeployment reports the current status, and availableActions lists start only when the deployment is stopped.
How To Fix
- Fetch the deployment with
getDeploymentand checkstatus. - Only call
startwhen the deployment isstopped. - If the deployment is already
ready, it is running and no action is needed.
Common Mistakes
- Starting a running deployment: Calling
starton a deployment that is alreadyready. - Starting mid-build: Calling
startbefore the deployment has ever been stopped.
Related Errors
- err:unkey:application:deployment_not_running - When stopping a deployment that is not running
- err:unkey:application:deployment_is_production - When the deployment is in production
- err:unkey:application:deployment_is_stopping - When a stop is already in flight