Closed gilliganondata closed 3 years ago
I'm not so sure this is true anymore. I ran a few queries with "FALSE" and didn't have any problems.
#failedtestcase dr <- c("2020-07-01", "2020-10-26") date_range <- dr dimensions <- c('sitesections') metrics <- c( "visits") metricSort <- 'desc' top <- c(50000) include_unspecified <- FALSE search = NA
When unspecified is included the data will show unspecified but when it is False then there is no data and the 'totalElements' shows 0. Need to figure out a way to handle that instead of attempting to mutate on list that has 0 elements.
Solved by using error handling. The solution stops the API calls with information about the error.
The current default for
aa_freeform_table()
isinclude_unspecified=FALSE
. However, if a call is made where there are Unspecified values returned, the function fails.