Skip to content

render_failed

HTTP status: 422 Unprocessable Content · Charged: no

POST /v1/md/mermaid tried every diagram in the call and none of them rendered. The response carries one entry per diagram in errors, with the diagram’s index, the renderer’s message and, when the diagrams came inside a Markdown document, the line of the block’s opening fence. summary shows the count.

This is different from a partial result: when at least one diagram renders, the call succeeds with status 200, the rendered ones come back in diagrams, the broken ones in errors, and only the rendered ones are charged.

  1. Open each entry in errors, go to its line and fix the syntax the message points at. The first word of a Mermaid diagram names its type, such as flowchart TD or sequenceDiagram.
  2. Call again. A document whose diagrams all fail costs nothing, so retrying is free.

Captured from the production API on 2026-10-23, sending a Markdown document with two ```mermaid blocks that contain plain text instead of a diagram.

{
"error": "render_failed",
"hint": "None of the diagrams could be rendered. Each entry in `errors` gives the diagram's index, the line of its opening fence in the document (when sent as Markdown) and the renderer's message; fix the syntax and call again. Nothing was charged.",
"errors": [
{ "index": 0, "message": "No diagram type detected matching given configuration for text: nope", "line": 3 },
{ "index": 1, "message": "No diagram type detected matching given configuration for text: also nope", "line": 9 }
],
"summary": { "total": 2, "rendered": 0, "failed": 2 },
"docs_url": "https://docs.markdownscribe.com/errors/render_failed",
"request_id": "01M5MV4KTD31GQK5Q6Z8VK8HD7"
}