Skip to content

Scenario unavailable

The answer a project’s address gives instead of a mock’s when the request depends on a scenario or a response sequence whose state MockHub could not read or save.

Field Value
type https://mockhub.dev/problems/scenario-unavailable
Status 503

MockHub stores each scenario’s state and each sequence’s place. A mock whose answer depends on one is chosen only once MockHub has read the state, and a mock that moves it answers only once the move is saved. When either cannot happen, MockHub answers this rather than guess: no mock answers, the state stays where it was, and the request is not forwarded to the project’s upstream. Mocks without a scenario or a sequence keep answering.

It is also the answer for a scenario left in a state you have since removed from its list, until MockHub puts the scenario back to Started, which it does right after you save the list.

Rarely, MockHub saved a move and then lost the confirmation. The state has then moved although the caller got this answer.

Always 503.

Only from a project’s own address. The request log lists it as answered by Mock server did not answer. It does not count as a call of any mock: no webhook fires for it.

When detail
Always The mock server could not read or save the scenario state this request depends on. Retry shortly.

Moving or resetting a scenario on the Scenarios tab fails differently when the state cannot be saved: the app says “The mock server for this project could not be reached.”

This type carries no extension members.

{
"type": "https://mockhub.dev/problems/scenario-unavailable",
"title": "Scenario state unavailable",
"status": 503,
"detail": "The mock server could not read or save the scenario state this request depends on. Retry shortly."
}
  • Retry the request after a few seconds.
  • If one scenario keeps answering this after you removed states from its list, select Reset on its row on the Scenarios tab; see Inspect and reset scenario state.
  • If every scenario keeps answering this for minutes, report it with the project’s address and the time of the requests.

Report a problem with this page