Config conflict
A refusal to apply a configuration document, because the project is no longer in the state its preview was computed for.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/config-conflict |
| Status | 409 |
What it means
Section titled “What it means”Applying a configuration document replaces the project’s configuration as a whole, so an apply runs only the plan its preview showed. Each preview records the revision of the project’s configuration, a fingerprint of everything the document covers. When the revision has moved by the time of the apply, because the project was changed in between, nothing is applied and this problem says why. The document itself may be perfectly valid.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”In the app, only from Apply on a project’s Config as code page.
| When | detail |
|---|---|
| The project changed after the preview | The project configuration changed since this plan was computed (expected revision <revision>, current <revision>). Re-run diff and push again. |
| A resource the plan changes was deleted while the apply ran | The <mock, scenario, chaos profile or webhook> "<name>" named in this plan no longer exists. Re-run diff and push again. |
A revision is 64 hexadecimal characters. The app adds Nothing was applied. Preview the document again before applying. under the detail.
This type carries no extension members; the two revisions are in the detail.
{ "type": "https://mockhub.dev/problems/config-conflict", "title": "Project changed since the diff", "status": 409, "detail": "The project configuration changed since this plan was computed (expected revision 3f9a1c2e5b7d4a6f8e0c1b2a3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f6a, current 8c1d0e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d). Re-run diff and push again."}What to do
Section titled “What to do”Preview the document again, and read the new plan before applying it: the change that caused the conflict is not in your document, and applying it unread would undo that change. Applying a configuration says the project changed gives the steps.
Other 409 answers from an apply carry the generic type, such as Deactivate the profile before deleting it. Previewing again does not help with those: change the document or the project first.