Skip to content

Data store key missing

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-key-missing
Status 422

The mock’s write reads its record key from a path segment, a query parameter, a request header or a JSONPath in the request or response body, and found nothing there, an empty value, or a key over 256 bytes.

Always 422.

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 could not find the data-store key it writes under in this request or its response.

This type carries no extension members.

{
"type": "https://mockhub.dev/problems/store-key-missing",
"title": "Data store key missing",
"status": 422,
"detail": "The mock could not find the data-store key it writes under in this request or its response."
}
  • Send the request the mock expects: the path segment, parameter, header or body field it reads the key from. A number and its text are the same key, so {"id": 7} and /items/7 name one record.
  • If the request is right, check the mock’s Data store section in the editor: Key from and its Segment (0 = first), parameter or header name, or JSONPath. Path segments count from 0.

Report a problem with this page