Skip to main content

CLI troubleshooting

Errors show the HTTP status, the API's error code and its message, for example Error: 404 NOT_FOUND: …. The API error table lists every code. These are the ones you are most likely to meet.

Setup and access​

You seeCauseFix
an API key is requiredNo key in --apikey, URLQUERY_APIKEY or ~/.urlquery-cli.yaml.urlquery-cli config set apikey <key>, or set URLQUERY_APIKEY.
403 INVALID_API_KEYThe key is wrong, disabled, or could not be checked.Check it with urlquery-cli config show (masked) against your account. If it is right, retry later.
403 FORBIDDEN on reputation exportYour account lacks the reputation_export capability.Contact support.
404 NOT_FOUNDThe report, rule, monitor or resource doesn't exist, or your key can't see it. The API doesn't say which.Check the ID, and whether the report is private or restricted to someone else. See Report visibility.
429 RATE_LIMIT_EXCEEDED … (retry after Ns)A quota of your key is used up.Wait that long. Slow down loops; YARA and monitoring changes have their own, lower limits. See Rate limits.
Error: not deletedA deletion asks for confirmation, and no one answered, for example in a script.Answer y, or pass --yes when you are sure.

Search finds nothing, or less than expected​

  • Use the field names of the report. domain:example.com finds nothing, because the field is url.domain. Common fields: url.domain, url.fqdn, url.tld, ip.addr, tags, submit.tags, final.title, javascript.script.sha256, http.response.data.sha256. See Search syntax.
  • Quote the query for your shell, especially with spaces, *, " or [ ]: urlquery-cli report search 'final.title:"Sign in" AND date:[2026-11-01 TO 2026-11-28]'.
  • Search covers the last year, and only reports your key can see.
  • A page can hold fewer reports than --limit, or than page.total_hits suggests, when a matching report was removed or changed access since it was indexed. Keep paging with --offset.
  • A file's hash depends on where it was seen. A script has a javascript.script.sha256; a response body has an http.response.data.sha256. Try both.

Submissions​

You seeCauseFix
400 … tags must be 1 to 64 letters, digits or underscoresA tag with a hyphen, space or other character.Use campaign_42, not campaign-42.
A report everyone can seeNo --access and no saved access: the API's default is public.Pass --access restricted or private, or save a default with urlquery-cli config set access restricted. Deleting the report removes it, but it may already have been seen.
submission … is still queued (or processing, analyzing): context deadline exceeded--wait gave up before the analysis ended.The submission is still queued; the output shows its queue and report IDs. Follow it with urlquery-cli submit status <queue_id> --wait, or raise --wait-timeout.
status: failedThe analysis could not run, for example the site did not answer.Check the URL and submit it again later.

A submission that fails with a network error may still have been queued, so the CLI never retries it. Check report recent --scope user before you submit it again.

Reports and diffs​

You seeCauseFix
404 on report resource or report diffThat content was not stored for this report, for example an image or a large body. In report compare output, its available is false.Diff another version, or compare the reports' hashes and similarity instead.
… is not text of at most 5 MiB, so it cannot be diffedThe resource is binary or too large.Compare it by its hash and size in report compare.
a resource has more than 20000 linesOne side is too long to diff.Diff a smaller resource. Minified code is one line, so this usually means a large data file.
One huge changed line in a script diffThe script is minified.Add --beautify.
404 on host get <ip>Host Profile has a profile for an IP address only when pages were loaded from it directly.Use host list --ip <ip> for the hosts on that address.

YARA and monitoring​

You seeCauseFix
422 UNPROCESSABLE_ENTITY with compiler errorsThe source doesn't compile.Run urlquery-cli yara validate <file> --summary for the errors and their lines.
503 COMPILER_BUSYMany sources are compiling at once.Retry after a few seconds.
A new rule matches nothing yetRules scan new analyses only, within a few minutes of saving, never existing reports.Test it against existing reports with yara test.
skipped values with invalidNot a hash, IP, domain, FQDN, URL or URL pattern, or a host name without a public suffix such as example.invalid. Values can't contain spaces.Fix the value; give each one on its own.
skipped values with limit, or 409 LIMIT_REACHEDYour limit of watchlists, indicators or page monitors is reached.Remove some you no longer need.
400 ignore must be http or https URLsAn --ignore pattern without a scheme and host, such as */analytics.js.Name the host: https://www.google-analytics.com/*.
400 only takes exact URLs, without *A pattern in --only.List the exact URLs; patterns go in --ignore.
400 days must be 7, 30 or 90watchlist stats --days with another value.Use 7, 30 or 90.
400 the report is of another URL than the monitor'spage baseline with a report of a different URL.Use a report of the monitor's URL, such as one of its runs.

Still stuck?​

Run the command with --help to check its arguments, and compare with the command reference. For problems with the CLI itself, open an issue on GitHub; for your account, contact support.