# Troubleshoot common problems

Troubleshoot render failures, missing data, blocked images, page breaks, and PDFs that look different between viewers.

## Preview works but render does not

> [!WARNING] Warning
>
> Check published version, key/project, `template:render`, quota and preview resource warnings. Preview can omit disallowed images while a real render rejects them.

## Identify the error before retrying

| Code or symptom | Action |
| --- | --- |
| `RENDER_TEMPLATE_VERSION_NOT_PUBLISHED` | Open the target version in the editor and Publish it, then retry the job. |
| `RENDER_INVALID_API_KEY` / `RENDER_API_KEY_INSUFFICIENT_SCOPE` | Check the active key, correct project and `template:render` scope. |
| `RENDER_QUOTA_EXCEEDED` / `quota_exceeded` | Check workspace usage in Settings. Repeated POSTs do not restore quota. |
| `EXTERNAL_IMAGES_NOT_ALLOWED` | Read the preview warning and [image policy](/docs/assets/images/); use resources allowed by the workspace’s plan. |
| `ASSET_STORAGE_PLAN_REQUIRED` | The workspace cannot currently serve project assets. Check the plan and storage notice in Assets. |
| `RENDER_TIMEOUT` | Simplify or split large content, reduce image work, and check the processing limit before retrying. |
| 404 immediately after render 202 | Keep the accepted render ID and [follow the status retry guidance](/docs/developers/render-reference/). |
| PDF still shows an old label | Save the design, then regenerate PDF preview. Run inputs do not update the editor preview’s values. |

## Missing data
Check names, `params` bindings, prop scope and selected variant. In arrays, inspect item context and the full JSON shape.

## Clipping or excess whitespace
Inspect fixed heights/overflow, margins, fonts and keep-together settings. Start with small input and use PDF preview to locate physical page transitions.

## Download fails
Confirm success, retained output and project authorization. Download URLs do not bypass access controls.

## HTTP 401/403
Check API origin, `ApiKey`, current credential and scopes. A project A key cannot access project B's template. Do not send secrets to support.

## Agent revision conflict

> [!WARNING] Warning
>
> Reread current context and reconcile changes. Do not blindly overwrite a newer revision. Distinguish project `/mcp` from public `/docs/mcp` and use the correct headers.

## PDF looks different in another viewer

Chrome, Edge and the editor's PDF preview can show a design correctly while macOS Preview, Acrobat or a printer shows blurry dots, oversized patterns, white hairlines or shifted shadows. The PDF itself is the same file. Some CSS effects have no plain vector form in PDF, so the renderer embeds them as bitmaps or nested transparency groups, and each viewer draws those differently.

> [!NOTE] Information
>
> For output that looks identical in every viewer, use only solid colors, simple linear or radial gradients with opaque stops, borders of at least 0.75pt, shadows without blur, and plain vector SVG.

| Avoid | Typical symptom | Use instead |
| --- | --- | --- |
| `box-shadow` / `text-shadow` with blur, `filter`, `backdrop-filter` | Blurry, clipped or shifted shadow; text inside becomes unselectable | A hard shadow (blur 0), an offset solid layer, or a linear gradient |
| `mask-image`, `opacity` below 1 on a container, `mix-blend-mode`, `background-blend-mode`, `isolation` | Patterns scaled wrongly, layers missing or a different color | Set `rgba` colors or `fill-opacity` on individual elements; pre-blend colors |
| Repeating gradients (`repeating-*-gradient`, a gradient with a small `background-size`), `conic-gradient`, SVG `<pattern>` | Dots or stripes oversized, blurry, or with a seam at the page edge | An SVG that draws each dot or line, placed once with `background-repeat: no-repeat` |
| Gradient stops with `transparent` or `rgba`, hard-stop stripes | Banding or jagged stripe edges | Opaque stops pre-mixed with the background color |
| Filled shapes that touch exactly (isometric faces, table cell backgrounds, chart bars) | White hairlines between shapes | Overlap shapes by about 0.5px, add a same-color stroke, or draw one path |
| Borders below 0.75pt, `dashed`/`dotted` with `border-radius` | Lines disappear or dashes differ at corners | Borders of at least 0.75pt; solid rounded borders |
| 3D transforms, `<canvas>`, SVG `<filter>`/`<mask>`, color emoji, `background-clip: text` | Rasterized, soft or missing content | 2D transforms, SVG charts, icon SVGs and solid text color |
| Synthetic bold/italic, fonts without Vietnamese or other required glyphs, `-webkit-text-stroke` | Different weight or mixed fallback glyphs | Add every needed weight and style in the font catalog with full script coverage |
| `oklch()`, `lab()`, `color(display-p3 …)`, CMYK or unusual ICC images, low-resolution images | Colors shift or images look soft or pixelated | Hex/sRGB colors, sRGB images at least twice the printed size |
| Native `<input>`, `<select>`, `<button>`, `<video>`, `<iframe>`, `background-attachment: fixed` | Browser-specific appearance or nothing printed | Styled `div` elements with `appearance: none`; static images |

To check a change, open the downloaded PDF in at least two viewers, such as Chrome and macOS Preview or Acrobat, at 100% and 400% zoom.

## Report reproducibly

> [!NOTE] Information
>
> Provide time, action, template/version, render/delivery IDs and sanitized errors. Prefer fake reproduction data and redact credentials/personal information in screenshots.
