From 643cf359feaa33883267d28b203a58e2b3e5d725 Mon Sep 17 00:00:00 2001 From: kbvernon Date: Mon, 22 Jan 2024 14:57:51 -0700 Subject: [PATCH] fix error with missing resp variable --- R/get-estimates.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/get-estimates.R b/R/get-estimates.R index a8b0636..888dd43 100644 --- a/R/get-estimates.R +++ b/R/get-estimates.R @@ -35,6 +35,10 @@ get_layer_estimates <- function(x, token = arc_token()) { "getEstimates" ) + resp <- httr2::req_perform( + httr2::req_url_query(est_req, f = "json") + ) + # process json string res_raw <- RcppSimdJson::fparse(httr2::resp_body_string(resp))