I've identified two intertwined issues in ingest-functions.R and gargle::request_build:
-
get_raw_methods does not traverse the resources element of the discovery list returned by read_discovery_document
-
gargle::request_build does not expect path to have elements like {+parent}, which some apis (in this case Secret Manager) do.
-
This causes params[path_param_names] to fail because path_param_names still has the + symbol, unlike the param name
-
Failure then infects glue_data(path_params, path) which cannot find the value parent.
-
Debugging and correcting path_params on the fly will still result in glue_data, this time because it interprets the + as an operator.