# Troubleshooting

<a id="troubleshooting"></a>

| What you see | Check |
| --- | --- |
| No page | Confirm Legato is running, the file is inside `~/Library/Application Support/Legato/Pages/`, and its name ends in `.json` and doesn't start with a dot. Choosing a file in Source Preview previews it without installing it. If the page still doesn't appear, read its [status file](https://legatobar.com/docs/page-loading.md#status-files). After the trial, pages show again once there's a [license](https://legatobar.com/docs/license.md). |
| No editor suggestions | Use a JSON Schema-aware editor, keep the `$schema` line, and open Legato to install `Pages/.schemas/page.schema.json`. If editing outside Pages, adjust the schema location. |
| File or source error | Use a complete page, not a reference fragment. Check JSON syntax, the source name used by `ref`, and that every sourced card has a `map`. |
| HTTP 401 or 403 | Check the API's authentication scheme, the secret's name and host, token permissions, and required version or Accept headers. Login headers belong in `auth.request.headers`. |
| Rate limit or “asked Legato to wait” | Let the shown cooldown expire. It is shared by polling, Fetch Once and buttons for the same origin and credentials. Increase `every` if limits recur; a blocked button needs another click after the wait. |
| “Didn't send JSON” | Check the endpoint returns API JSON rather than a web page or sign-in form. Use `format: "text"` only if you want to display the entire text answer. |
| Missing or unexpected card values | Right-click the page → **Preview Source…** and preview a sample. Check mapping issues and Mapped card JSON. Named requests add a name prefix; lists evaluate paths relative to each item. |
| No usable Prometheus samples | Check `/metrics`, credentials, and the `group_by` label. HTML and empty results are not valid metric data. |
| Secret missing or unreadable | Save it for the configured host in Settings → Secrets. A different app signature or Keychain restriction may require saving it again. |
| Cards show dashes, and no error | The service may report errors in a 200 answer. Right-click the page → **Preview Source…** and Fetch Once to see it, then give the source [`fail`](https://legatobar.com/docs/source-polling.md#when-the-answer-reports-an-error). |
| A button succeeds but the card has not changed | Check the command response, any `success` condition, and subsequent source errors. An accepted command can take time to affect the device. |
