On this page

Troubleshooting

Start with the status code, problem type and detail, session ID and the last successful observation. Preserve those in diagnostics without logging keys, admission codes or viewer credentials. Errors lists the exact problem contracts; this guide connects symptoms to recovery across MCP, REST and SDKs.

Authentication fails (401 or 403)

  1. For MCP, check the client can start the server, then finish authenticate or reconnect OAuth. See MCP setup. Repeating a browser action will not repair a failed sign-in.
  2. For REST or SDKs, check the API host and the environment supplying Authorization: Bearer …. A revoked or rotated key needs replacement in the application configuration.
  3. A supervised-live-key-required error means an rvp_test_ key was used for a real browser. Use a live key; test responses are mocks.
  4. A 403 permission denial is an authorization decision. Request owner review rather than retrying under another key. Stop if authorization is denied.

Requests are throttled (429)

Read Retry-After (seconds or an HTTP date), wait, then retry at most twice within your task's deadline. If the indicated wait exceeds that deadline, stop and schedule later. Without a header use bounded exponential backoff with jitter, such as 1 then 2 seconds. Reduce concurrency if throttling continues.

A timeout can occur after a click has executed. Inspect the page before retrying a mutation. SDK retries are described in SDKs; avoid stacking another retry loop around them. Purchases must reuse the same idempotency key according to the billing API.

  1. Inspect expires_in_seconds and whether this one-time grant has already been redeemed. Mint a fresh grant once for the intended person.
  2. Check the grant's exact origin matches the viewer. The hosted API viewer uses https://api.roveapi.com; a custom viewer uses its own HTTPS origin. Do not substitute the public marketing origin.
  3. Read the session status. If closed or expired, the old viewer cannot resume it. Start a new session only after deciding what to restore.
  4. If a fresh grant for a live session still fails, stop exchanging it repeatedly and contact support with the problem type and session ID.

See supervised viewer lifecycle and supervised sessions.

Stale control or a stalled session

  1. Read GET /v1/browser/session/{session_id} (SDK getSession / get_session). If a human controls it, wait for them rather than retrying agent inputs.
  2. For custom viewers, a stale generation means another transition won. Read the current state and use its expected_generation; never blindly increment a cached generation.
  3. After the operator returns control, obtain a fresh tree or screenshot before mutating. A stale observation is repaired by reading, not replaying the refused click.
  4. Poll at a bounded interval and with a deadline, as in the handoff recipe. A parked challenge uses navigate on the same session with 10–60 second backoff. Stop at the human-wait expiry or your earlier task deadline.
  5. If the session has ended, preserve the diagnostic reason and close resources. Create a new session only after checking whether the task already completed.

The conceptual model explains the states; the error reference documents the refusal types.

Selector missing or the wrong page is active

  1. Obtain a fresh get_a11y_tree; check the current URL and visible role/name. A selector from an earlier observation may no longer identify the same element.
  2. Use list_pages after a popup. Target its page ID, or switch to the intended page. Inspect frame if the field is inside an iframe.
  3. If the element should appear asynchronously, use one bounded wait_for with an explicit timeout, then read again and retry once with the observed label or selector.
  4. If it is still missing, stop and report the observed page or request human help; do not repeatedly click nearby elements.

See reading pages and action parameters.

Credit depletion

A 402 action refusal or a 410 credit-exhausted session response can carry purchasing and owner-action instructions. Follow next_step, links, retry and owner_action_url from the problem body. Never restart a depleted session indefinitely. Use the billing recovery guide and ask the owner when purchasing is not permitted.

Help improve this page: Report a correction.

Blocked on a task? Contact support. Include the error type and session ID; omit keys and viewer credentials.

Rove — the supervised browser for agents