Error in `httr2::req_perform()`:
! Failed to parse error body with method defined in req_error()
Caused by error in `check_content_type()`:
! Unexpected content type 'text/html'
Expecting 'application/json'
Or suffix '+json'
ℹ Override check with `check_type = FALSE`
Run `rlang::last_trace()` to see where the error occurred.
Called from: signal_abort(cnd, .file)
When setting check_type = FALSE in gist_error_body() the error parsing changes:
Error in `httr2::req_perform()`:
! Failed to parse error body with method defined in req_error()
Caused by error:
! lexical error: invalid char in json text.
<!DOCTYPE html> <!--[if lt IE 7
(right here) ------^
Run `rlang::last_trace()` to see where the error occurred.
Called from: signal_abort(cnd, .file)
When removing error parsing the timeout error is revealed:
get_raster()
is failing at different combinations of spatial and temporal resolution and large areas.tl,dr: It's a timeout problem (524) that creates an error parsing problem.
Returns:
check_type = FALSE
ingist_error_body()
the error parsing changes: