snakereach

Errors

422 Invalid field

The body was valid JSON but a field was wrong.

What causes it

  • `url` was empty, or used a scheme other than http/https.
  • `target` on /v1/sitemap was neither `sitemap` nor `feeds`.
  • A numeric field was out of range.

How to fix it

  1. A bare host is fine, `example.com` becomes `https://example.com`. Anything with a non-http scheme is refused.
  2. The response lists the offending field.

What it looks like

422 response
{
  "detail": [
    { "loc": ["body", "url"],
      "msg": "Value error, only http and https URLs are supported",
      "type": "value_error" }
  ]
}

See also

POST /v1/scrape · All errors