ERR::SCRAPE::UPSTREAM_WEBSITE_ERROR

From the 2022/09/01, to simplify errors management and the perception by the api consumer - all errors with Deprecated http code becomes 422 and the code must be used to handle them.

Upstream website you scrape had issue. See all errors

  • Retryable: Yes
  • HTTP status code: 500 Deprecated - Will became 422 on 2022/09/01

Related Documentation

Read Error From Response Body

{
    "config": { ... },
    "context": { ... },
    "result": {
        [...],
        "status": "DONE",
        "success": false,
        "reason": null,
        "error": {
            "http_code": 500,
            "code": "ERR::SCRAPE::UPSTREAM_WEBSITE_ERROR",
            "description": "Upstream website you scrape had issue",
            "error_id": "9993a546-b899-4927-b788-04f5c4e473d5",
            "message": "Useful hint with details about your error",
            "scrape_id": "7c61352c-f1a7-4ea6-a0b8-198d7ac6fe1a",
            "retryable": true,
            "doc_url": "https://scrapfly.io/docs/scrape-api/error/ERR::SCRAPE::UPSTREAM_WEBSITE_ERROR"
        },
        [...],
    }
}

Read Error From Response Headers

Moslty relevant with HEAD request

  • X-Scrapfly-Reject-Code: ERR::SCRAPE::UPSTREAM_WEBSITE_ERROR
  • X-Scrapfly-Reject-Description: Upstream website you scrape had issue
  • X-Scrapfly-Reject-Doc: https://scrapfly.io/docs/scrape-api/error/ERR::SCRAPE::UPSTREAM_WEBSITE_ERROR
  • X-Scrapfly-Reject-Http-Code: https://scrapfly.io/docs/scrape-api/error/500
  • X-Scrapfly-Reject-Retryable: true

Suggested content