You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It arises when the API was updated with the new Mauritania 2020-21 DHS was released. Trevor updated the DHS API to reflect that last night. But I continued to get this error because available_datasets(clear_cache_first = TRUE) was accessing a cached version of the "datasets" API call instead of re-polling the API endpoint for an update, even when clear_cache_first = TRUE.
I think that in this bit of code, if clear_cache_first = TRUE we either need to clear the cached versions of the "datasets" and "surveys" endpoints first , or add an argument to self$dhs_api_request() to force a call to the API rather than accessing cached call.
For @OJWatson -- I have just been getting this error:
It arises when the API was updated with the new Mauritania 2020-21 DHS was released. Trevor updated the DHS API to reflect that last night. But I continued to get this error because
available_datasets(clear_cache_first = TRUE)
was accessing a cached version of the "datasets" API call instead of re-polling the API endpoint for an update, even whenclear_cache_first = TRUE
.I think that in this bit of code, if
clear_cache_first = TRUE
we either need to clear the cached versions of the"datasets"
and"surveys"
endpoints first , or add an argument toself$dhs_api_request()
to force a call to the API rather than accessing cached call.rdhs/R/client.R
Lines 322 to 329 in 39d0961
The text was updated successfully, but these errors were encountered: