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
- A bare host is fine, `example.com` becomes `https://example.com`. Anything with a non-http scheme is refused.
- The response lists the offending field.
What it looks like
{
"detail": [
{ "loc": ["body", "url"],
"msg": "Value error, only http and https URLs are supported",
"type": "value_error" }
]
}