Data store value invalid
The answer a project’s mock gives instead of its own response when its data store write cannot happen: the step that saves, deletes or clears records after the mock answers.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/store-value-invalid |
| Status | 422 |
What it means
Section titled “What it means”A Save the record write stores the response body or the request body, whichever the mock’s Saving names, and that body was not JSON, or was nested more than 64 levels deep.
Status
Section titled “Status”Always 422.
Where it comes from
Section titled “Where it comes from”Only from a project’s own address, and from Try it, when the mock that matched has a data store write. The management API never sends it.
| When | detail |
|---|---|
| Always | The mock stores its value as JSON, and this value is not JSON or is nested too deeply. |
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/store-value-invalid", "title": "Data store value invalid", "status": 422, "detail": "The mock stores its value as JSON, and this value is not JSON or is nested too deeply."}What to do
Section titled “What to do”- If the mock saves The request body, send a JSON body.
- If it saves The response body, check that the mock’s response renders as JSON: send the request with Try it and look at the body.