If you have not defined a parser for a response type, use this function to return useful information to help construct a parser.
Usage
resp_tidy_unknown(resp, call = rlang::caller_env())
Arguments
- resp
(
httr2_response
) A singlehttr2::response()
object (as returned byhttr2::req_perform()
).- call
(
environment
) The environment from which a function was called, e.g.rlang::caller_env()
(the default). The environment will be mentioned in error messages as the source of the error. This argument is particularly useful for functions that are intended to be called as utilities inside other functions.
Value
This function always throws an error. The error lists the names of
the response pieces after parsing with resp_body_auto()
.