ERR::SCREENSHOT::INVALID_CONTENT_TYPE
Only content type text/html is supported for screenshot. See all errors
- Retryable: No
- HTTP status code: 422
The Screenshot API never retries internally: it accepts no retry parameter and always runs the
capture with retries disabled. Retryable above tells you whether sending the same request again can
succeed, when it is No the request or the target has to change first.
Related Documentation
Read Error From Response Body
{
"code": "ERR::SCREENSHOT::INVALID_CONTENT_TYPE",
"error_id": "f0e9a6af-846a-49ab-8321-e21bb12bf494",
"http_code": 422,
"links": {
"Related Error Doc": "https://scrapfly.io/docs/screenshot-api/error/ERR::SCREENSHOT::INVALID_CONTENT_TYPE"
},
"message": "Only content type text/html is supported for screenshot",
"reason": "Useful information about the error",
"retryable": false
}
Read Error From Response Headers
- X-Scrapfly-Reject-Code:
422 - X-Scrapfly-Reject-Description:
Only content type text/html is supported for screenshot -
X-Scrapfly-Reject-Doc:
https://scrapfly.io/docs/screenshot-api/error/ERR::SCREENSHOT::INVALID_CONTENT_TYPE. Every documentation link of the error, joined with a comma, so this value can hold more than one URL. - X-Scrapfly-Reject-Id:
f0e9a6af-846a-49ab-8321-e21bb12bf494 - X-Scrapfly-Reject-Retryable:
false. This header is always sent asfalse, read theretryablefield of the response body to know if the error is retryable.