err:unkey:application:deployment_is_stoppingExample response
Likely causes
- You called
deployments.stopDeploymentagain before the first stop finished. A stop takes effect right away, but the status only reads stopped once the last instance has shut down.
How to fix
- Nothing to do: the first stop is already in progress. Poll
deployments.getDeploymentuntil the status reads stopped. - If you want the deployment back, call
deployments.startDeployment. You don’t have to wait for the stop to finish.
Related errors
err:unkey:application:deployment_not_running: the deployment isn’t running at all.err:unkey:application:deployment_not_stopped: start was called on a deployment that isn’t stopped.