Troubleshooting
What to check when a request, query, log line, or service does not show up.
On this page 5 sections
Find what you see, then do the steps in order. Stop at the first one that fixes it.
Nothing shows up
No requests at all
- Check that WizeLens is mounted before your routes (Express, Koa, Hono).
- Check that the app runs in development, or has
WIZELENS_ENABLED=true. - To read the dashboard in that app outside development, also set
WIZELENS_DASHBOARD=true.
No HUD on a page your server renders
- Check that the add-on serves the dashboard: development, or
WIZELENS_DASHBOARD=true. - Check that
Hud/hudandWIZELENS_HUDare notfalse. - Check that the page is a full
200text/htmlanswer with a</body>. A page your app compresses itself is left alone. - Node: read the app's log. It says when
@wizeworks/lens-browseris missing.
See The HUD.
No HUD in Vue, Angular, Svelte, or plain JS
- With
hud: "auto"(the default), the HUD shows only when{endpoint}/api/infoanswers. Open that address. - It must reach the server's dashboard, not your app's HTML fallback. Fix the endpoint or the proxy if it does not.
- Or pass
hud: trueto show it always.
Next.js routes all answer 404 after an update
- Stop
next dev. - Delete the
.nextfolder. - Start
next devagain.
See Update WizeLens.
Something is missing
Requests, but no queries
- Check that the database line runs before the first query.
Requests, but no logs
- Lines outside a request need
Logs.Outside/logs.outsideon. It is on by default. - Check the level: a line must be at or above
Logs.MinLevel/logs.minLevel(defaultinfo). - Serilog and NLog apps need
WizeLens.SerilogorWizeLens.NLog. - Node loggers other than
consoleand Fastify need their one line.
No browser timing
- Check that
import "@wizeworks/lens-react/install"is the first import. - Check that
/_wizelensreaches your API.
A downstream service is missing
- Check that the downstream service runs WizeLens too.
- Check that the call goes through
HttpClient,fetch, or gRPC.
A service is missing in the hub
- Check that
WIZELENS_ENDPOINTis set where the service runs. - Restart the service after you set it.
- Read the service's log. It says why the hub took nothing:
- it could not reach the hub;
- the hub needs a key, or refused one (
401,403): setWIZELENS_TOKENto a livewl_ik_key; - the hub asked it to slow down (
429).
Fewer requests than you sent
- Sampling is on. Open Connect → This service to see the rate.
- Change
WIZELENS_SAMPLE_RATEto keep more.
Old data is gone after a restart
- Traces are kept for 24 hours or 2,000 traces.
- Change
MaxAge/maxAgeMsandMaxTraces/maxTracesto keep more.
Working as designed
These look like faults, but they are on purpose.
| You see | Why |
|---|---|
| An OpenTelemetry app shows "Idle" | OpenTelemetry apps send only when they have data. |
| No CORS preflight requests | OPTIONS preflights carry no traceparent, so they are not traced. |
| A 404 or 400 does not count as an error | A 4xx answer is not a failure. |
| No health check requests | Kubernetes probes and Google and AWS health checks are not traced. |
A 503 you send on purpose counts as an error. To mark it as expected, send X-WizeLens-Expected: 1 on it, or call
wizelens.expected() (Node) or WizeLensRequest.Expected() (.NET). See Answers you expect.
The SQLite file
Each app keeps its traces at .wizelens/traces.db. If the file cannot be written, WizeLens logs one warning and keeps
working in memory. It never breaks your app.
Still stuck
Open an issue on GitHub with your stack, versions, and what you expected to see.