err:unkey:application:deployment_is_productionExample response
Likely causes
- You called
deployments.stopDeploymentordeployments.startDeploymenton a production deployment. Stop and start are only for preview deployments.
How to fix
- To take a production deployment out of service, promote or roll back to another production deployment with
deployments.promoteDeploymentordeployments.rollbackDeployment. - Use stop and start only on preview deployments.
Related errors
err:unkey:application:deployment_not_production: the opposite case: promote and rollback need a production deployment.err:unkey:application:deployment_not_running: stop was called on a deployment that isn’t running.