Mock response did not render
The answer a project’s address gives in place of a mock’s response when the mock’s template could not be rendered.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/mock-render-failed |
| Status | 500 |
What it means
Section titled “What it means”A mock that renders templates matched the request, and an expression in its response body or headers failed: a syntax mistake, a helper that does not exist or cannot use its arguments, a fake-data path that does not exist, or a request value a helper needed and did not get. The mock server’s report of where and why stays with the project, and the caller gets this error instead.
The request still counts as the mock’s answer. The request log names the mock under Answered by, a scenario or response sequence the mock moves has moved, and a webhook that fires when the mock is served fires, with response.status 500.
Status
Section titled “Status”Always 500.
Where it comes from
Section titled “Where it comes from”Only from a project’s own address. Try it shows the mock server’s report instead, so that it can mark the expression in the editor. A mock whose Response templating is Serve as written never sends it, and neither does a project with Response templating off.
| When | detail |
|---|---|
| Always | The mock that matched this request could not render its response. The project's request log says why. |
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/mock-render-failed", "title": "Mock response did not render", "status": 500, "detail": "The mock that matched this request could not render its response. The project's request log says why."}What to do
Section titled “What to do”- Open the request on the project’s Request logs tab. Under Response, The mock’s response did not render says why in plain words, and Open the mock opens the mock in the editor.
- Select Try it and Preview this response. Show in the editor marks the expression at fault.
- Fix the expression, and run Try it again. A mock’s response did not render lists the usual causes.
To have the assistant propose the fix instead, select Fix with AI in that note, with the Editor role on a plan with the assistant. It reads the request and the reason, and MockHub sends the request to the fixed mock in the sandbox before you review the proposal.
A project that does not log request or response data does not keep why, because the reason can quote the request; the log says so, and Try it finds it. An AI assistant connected over MCP reads the same reason as renderFailure from list_request_logs.