err:unkey:application:deployment_not_awaiting_approvaldeployments.authorizeDeployment on a deployment that isn’t waiting for approval. You get HTTP 412.
Example response
Likely causes
- Someone already authorized the deployment.
- The deployment was cancelled or superseded before it was authorized.
- The deployment never needed approval. Only deployments from forked pull requests wait for approval.
How to fix
- Check the status named in
detail, or read it withdeployments.getDeployment. superseded: a newer commit on the same branch replaced it. Authorize the newer deployment instead.cancelled: push a new commit to create a new deployment.- Any other status: it was already authorized or never needed approval. There’s nothing to do.
Related errors
err:unkey:application:precondition_failed: the workspace has no Compute plan or is paused at its spend limit, which also blocks authorization.err:unkey:data:deployment_not_found: the deployment does not exist, or your root key cannot write to it.