Troubleshooting
The API, the CLI and the MCP server share one set of error codes (ErrorCode
in packages/schemas/src/common.ts). An error is
{ "code", "message", "retryable" }; the message says what was found. A
retryable error during a review is retried by the stage runner (up to 3
attempts with backoff) before the stage fails. CLI exit codes: 2 for
invalid_config, invalid_input, not_authorized, not_found and
origin_not_allowed; 3 for every other code.
| Code | Typical cause | What to do |
|---|---|---|
not_found |
Unknown review, finding or evidence id; or no local data in the directory (No local reviews found in …) |
Check the id; run from the directory that holds .yomorai/data, or pass --data-dir |
not_authorized |
Missing or rejected API token (HTTP 401/403); a token without the needed scope; a caller without the repository permission; a model provider rejected its key | Create a token with the right scopes (read, review, approve); check the key named by apiKeySecret |
invalid_input |
A bad flag or request body: a URL that is not https (or http on localhost), a URL with credentials, an unknown category or viewport, a route without a leading /; --production/--preview/scope flags with --remote against a Cloudflare deployment |
Fix the input as the message says |
invalid_config |
The configuration failed validation (each problem is listed with its key path); a configuration file already exists (init without --force); a required secret is not set (for example YOMORAI_PROFILE_KEY, CLOUDFLARE_API_TOKEN for Cloudflare discovery, or a model key); a login flow refers to a credential that is not stored |
See the configuration reference; set the secret |
budget_exhausted |
Reserving the estimated cost of an operation would exceed the review, repository or installation budget. The review ends budget_exhausted and is partial |
Raise budgets.* or reduce budgets.limits; monthly budgets reset at the start of a UTC month |
preview_not_found_for_sha |
No preview deployment of the head commit was found within readiness.timeoutSeconds |
Check that your host deploys previews and reports them (GitHub deployment status success, bot comment matching pattern, Pages commit); raise the timeout |
deployment_identity_mismatch |
The preview’s buildIdPath reports a different commit than the head |
The preview is stale or another build; wait for the right deployment or fix the build-id endpoint |
deployment_not_ready |
A readiness path did not answer successfully in time, or answered an error status | Check readiness.paths and the deployment |
origin_not_allowed |
A deployment URL, redirect or authentication-profile origin is outside the allowlist; the performance runner refused a URL outside ALLOWED_ORIGINS |
Add the exact origin to environments.*.origins (and to the runner’s ALLOWED_ORIGINS). Origins are exact; patterns are not supported |
provider_unavailable |
A browser, model or Cloudflare API was unreachable, rate-limited (429) or failed (5xx); a GitHub App installation is not known yet | Usually transient and retried; check provider status and limits |
browser_unavailable |
The remote browser could not be opened: the launch rate or concurrency limit answered 429, or launches kept failing, after bounded retries that honour Retry-After |
Retried with the stage or Workflow step; lower the per-repository browser limit, or check the account’s Browser Run limits |
model_unavailable |
The configured model id is not offered by the provider | Run yomorai doctor; pick a model id the provider lists |
invalid_model_output |
A model’s answer failed schema validation after models.maxRetries retries |
The output is discarded and the review continues without it; consider another model |
prompt_blocked |
A prompt contained a configured secret value and was not sent | The stage that built the prompt fails, and with it the review. Find out why a secret value appears in the page or pull-request content, or review with models off |
auth_challenge_detected |
The sign-in page shows a CAPTCHA or multi-factor challenge | Yomorai never attempts these; use a test identity without them, or a human_assisted profile where available |
human_auth_timeout |
Nobody completed a human-assisted sign-in within humanTimeoutMinutes |
Sign in sooner, or raise the timeout. Not available on the Cloudflare deployment in this release |
production_guard_failed |
The production request guard could not be verified (its probe request was not intercepted), or the browser provider cannot intercept WebSockets | The execution aborted before production was contacted; this indicates a browser-provider problem, report it |
stale_review |
The review is for a commit that is no longer the head, the pull request is closed, or a finished review was approved | Approve or request the review of the current head |
cancelled |
The review was cancelled (/yomorai cancel, the API, a closed pull request, a revoked approval) |
Start a new review if needed |
duration_limit |
The review ran longer than budgets.limits.maxDurationMinutes and was cancelled |
Raise the limit or reduce scenarios and routes |
schema_out_of_date |
The deployment’s database schema is behind the Worker (HTTP 503 on every API and webhook route) | Apply the schema; see Self-hosting |
evidence_integrity_failed |
Stored evidence no longer matches its SHA-256 (HTTP 409 when read) | The finding that rests on it is marked unsupported; investigate storage tampering or corruption |
internal |
An unexpected error | Details are logged, not returned; please report it with the log line |
Other situations
Section titled “Other situations”yomorai reviewexits 0 but the report saysneutral. Exit 0 means no confirmed regression or unintended change at or abovefailOn. Inconclusive findings and partial reviews areneutral; readpartialReasons.- Everything is
inconclusive. Without a reasoning model, differences that are not deterministic failures cannot be classified further; without--pr, there is no intent to match. See Concepts. doctorwarns about placeholder origins. Replaceexample.comorigins written byyomorai init.- Chromium does not launch. Run
pnpm exec playwright install chromium(on Linux CI:--with-deps). - The GitHub Action says no token is available. Expected on pull requests
from forks; a maintainer comments
/yomorai review. See GitHub Action. - Deployment requests fail with
Secret SESSION_SECRET is not set. Set it withwrangler secret put SESSION_SECRET(at least 32 characters);init --cloudflaredoes not set it.