snakereach

Errors

502 Upstream fetch failed

The page could not be fetched at all.

What causes it

  • DNS did not resolve.
  • The connection was refused or reset.
  • Too many redirects (more than 10).
  • The site returned a response snakereach could not obtain a body from.

How to fix it

  1. Check the URL resolves publicly, the `url` field names what was attempted.
  2. This is not the same as the site returning an error status: a 404 from the target site comes back as a normal document with `status: 404`.

What it looks like

502 response
{
  "type": "https://snakereach.com/errors/upstream-fetch-failed",
  "title": "Upstream fetch failed",
  "status": 502,
  "detail": "fetch failed for https://nonexistent.invalid: could not resolve host",
  "url": "https://nonexistent.invalid"
}

See also

POST /v1/scrape · All errors