Service troubleshooting and runtime records

Trace an API failure with its request ID and distinguish background dispatch, execution, recovery, and analytics issues.

Start with one failed request

Record the time, HTTP method, path, status, and error.code. Use the response’s X-Request-Id and JSON meta.requestId to correlate it with logs. For a reproduction, you can supply a short X-Request-Id. Service accepts 1 to 128 ASCII letters, digits, dots, underscores, colons, or hyphens and replaces other values. Use an opaque ID free of credentials or personal data.

curl -i -H 'X-Request-Id: config-check-01' \
  'http://localhost:3000/_/public/config/get'

This request omits the required key so you can inspect its validation error and request ID. For a 404, distinguish a missing route from a missing business record. See routing and the request lifecycle.

An API succeeded but the background work is missing

Confirm the original write, then find the Admin record by job ID, job key, or schedule run ID. Inspect dispatch and consumption separately before checking the handler’s result.

Log signal What it describes
catchup-send Whether the queue acknowledged a recovery send. unconfirmed means acceptance is unknown
delivery-skipped A delivery skipped after a terminal state or an unsuccessful claim. A claim miss alone does not establish duplicate execution
stale-recovery Successful state transitions during recovery. Use the task record to verify its individual result

After a successful execution, confirm the translation, page, or other output you expected. Direct jobs have no persistent job row, so check producer and consumer logs. See queues and jobs and scheduled tasks.

Distinguish runtime logs from analytics detail

app.telemetry() writes queryable business detail, such as site visits. Node uses DuckDB and Workers uses Cloudflare Analytics Engine. For Workers, writes need a dataset binding and queries also need account and read credentials. If writes occur but reads are empty, check for a new dataset that is not yet queryable, missing query credentials, or an empty result. Sampled results can be marked estimated. See SEO and analytics for public-site reporting.