inspector.restDocs

Troubleshooting

Solve common problems: no requests appearing, missing bodies or labels, SDK warnings, quota and Not recording, Workers and PHP-FPM issues, MCP connection and tool errors.

No requests appear

Work through this list in order.

  1. Is the key set where the service runs? The key belongs to one environment (irk_<org-slug>_<secret>). Check that the environment variable is available in the process that makes the calls, not only in your shell. Without a usable server_key the SDK warns once and does nothing.
  2. Is it the right key? A key writes into the environment it was created in. Look at the environment you expect in the app, and check the other environments of the project.
  3. Was it revoked? Ingest answers 401 and the SDK disables itself and warns once. Create a new key in the console.
  4. Can the service reach the API? It must reach https://<org-slug>.api.inspector.rest over HTTPS. A firewall or proxy may block it. Look at inspector.stats() (Node.js) for sent and dropped counts.
  5. Is the client instrumented before its first call? Call instrument_axios(axios, inspector) once at startup, before requests are made. For Guzzle, the middleware must be on the handler stack of the client that you use.
  6. Is the request excluded? Check sample_rate, include_hosts, exclude_hosts, include_paths and exclude_paths. A request that sets its own axios adapter is not recorded.
  7. Is the time range of the app too narrow? The list shows the selected time range. Try 24 h.
  8. Is your plan out of requests? See the monthly limit.
  9. Is the process ending too soon? Short scripts, serverless functions and Workers must flush. See below.

Requests appear late or only partly

  • Requests are sent in batches, about once a second. A short delay is normal.
  • Short scripts and serverless functions: call await inspector.close() (or flush()) before the process ends. On Cloudflare Workers use ctx.waitUntil(inspector.flush()). See Workers.
  • PHP: under PHP-FPM data is sent after the response. In CLI scripts and queue workers call $inspector->close() or flush(). See PHP-FPM.
  • The app shows requests that were still running as pending. After 10 minutes without an update they show as abandoned.

Bodies are missing

  • capture_body may be 'never', or 'on_error' (successful requests have no bodies).
  • Binary bodies are metadata only unless capture_binary is on. Bodies above max_binary_bytes are not uploaded. See Binary bodies.
  • A body is marked truncated when max_body_bytes cut it.
  • “N bodies skipped because of load”: the SDK dropped bodies to protect your application. See Behavior under load.
  • Streaming responses (responseType: 'stream') and FormData request bodies are recorded without a body.

Labels are missing or wrong

  • Labels merge per key; later sources win. See Labels.
  • In Node.js, with_labels follows the async call tree. If a label is missing in a callback, check that the HTTP call really happens inside with_labels. Without AsyncLocalStorage it applies to the synchronous part only.
  • Automatic labels (app_package, app_commit) are not added on runtimes without a file system, such as Workers.

SDK warnings

MessageWhat to do
No usable server_keyPass the ingest key.
The key is invalid or revoked (401)Create a new key in the console.
Batches are being rejected or droppedCheck stats(). A permanent 4xx means the batch is invalid; a 413 is handled by splitting.

Not recording or quota

If the app shows Not recording, your organization reached the monthly recorded-request limit of its plan. The SDKs stop capturing and check about once a minute. Upgrade the plan or wait for the next period; recording resumes within about a minute. See Plans and limits. Owners and admins are warned by email at 80% and 100%.

If storage is full, the oldest requests are deleted so that the newest can be stored. Shorten retention or reduce what you capture.

Performance

The SDK should not be noticeable. If you suspect otherwise, read inspector.stats().max_block_ms, the longest synchronous stretch the SDK ran on your application thread. Lower sample_rate, use capture_body: 'on_error' or set max_body_bytes.

Sign-in and the app

  • “Sign-in did not complete”: your browser may block the console’s cookie. Allow cookies for console.inspector.rest and inspector.rest subdomains.
  • “Environment not found or you don’t have access”: you are not a member of the organization, or the environment was deleted.
  • A shared link does not open: the person needs an account in your organization. See Sharing links.

MCP

SymptomCause and fix
401 when connectingNo token, an invalid token, or the connection was revoked or has expired. With OAuth, sign in again. With a token, create a new one under MCP access.
OAuth redirect is rejectedRedirect addresses must be https or loopback (http://127.0.0.1, http://localhost).
The client lists no tools or fewer toolsTool groups are turned off for the connection. Edit it under MCP access. Tools of disabled groups are not listed.
tool_disabledThe tool’s group is off for this connection.
not_found for an environmentThe environment does not exist or is outside the connection’s scope. The hint lists accessible ones. Use list_environments.
environment_ambiguousSeveral environments are in scope. Pass environment as org/project/env.
unknown_filterA parameter name is wrong. The hint lists valid names. See Shared filters.
rate_limitedMore than 120 calls per minute on one connection. Wait for the number of seconds in the hint.
truncated: trueThe output budget was reached. Use next_cursor, narrow the filters or raise max_output_bytes (up to 32768).
Values show [redacted]Masking is on for the connection. This is intended. Edit the connection to turn it off, only for environments without real credentials.
binary_body or body_not_capturedThe body is binary or was not captured by the SDK. See Binary bodies.
A cursor is invalidCursors are tied to the query. Start again without cursor.

Still stuck?

Email [email protected]. Include your organization address, the environment, the time of an example request and, for SDK issues, the SDK and runtime versions.

Paid plans include email support; the Free plan includes this documentation.