Skip to content
opis.Nutrition API

← All error codes

url_fetch_failed

Image URL fetch failed · HTTP 422

What it means

An image URL could not be fetched: not https, resolves to a private address, redirected to another host, took longer than 10 s, is larger than 15 MiB or is not an image.

What to do

Use a public https URL that serves the image directly, or upload the file.

Example

{
  "type": "https://platform.opis.health/docs/errors/url_fetch_failed",
  "title": "Image URL fetch failed",
  "status": 422,
  "detail": "…",
  "code": "url_fetch_failed",
  "request_id": "req_01k68a9nytdxx0x5x0p47zgrm8"
}