shadow_slot_taken
An org runs at most one policy version in shadow.
HTTP 409 · invalid_request_error · not retryable
What happened
Section titled “What happened”An org runs at most one policy version in shadow. Accepting a suggestion creates a new version and runs it in shadow, and another version is already running there. The suggestion goes back to open; nothing changed.
What to do
Section titled “What to do”Promote or deactivate the running shadow first, or accept again with "replace_shadow": true (--replace-shadow in the CLI) to replace it. Replacing seals a deed that names the version it replaced.
Example
Section titled “Example”{ "error": { "type": "invalid_request_error", "code": "shadow_slot_taken", "message": "acme-sim v2 is already running in shadow. Promote or clear it first, or accept with replace_shadow: true to replace it.", "param": "replace_shadow", "request_id": "req_01j9zr3m5k8q2w7x4t6v0b1c9d", "doc_url": "https://docs.deedglass.com/errors/shadow_slot_taken" }}The message is for a person and can get more exact over time: branch on type and code, never on the message.
In the SDKs
Section titled “In the SDKs”| SDK | Raised as |
|---|---|
TypeScript (@deedglass/sdk) |
InvalidRequestError with code === "shadow_slot_taken" |
Python (deedglass) |
deedglass.InvalidRequestError with .code == "shadow_slot_taken" |