worldbank / dkanr

General purpose R client to the DKAN Open Data platform
Other
7 stars 3 forks source link

retrieve_all_nodes fails to return results with valid query #1

Closed tonyfujs closed 7 years ago

tonyfujs commented 7 years ago

retrieve_nodes(fields = c('nid', 'type', 'status'), filters = c(type = 'dataset', status = 0), pagesize = 20, page = 1, as = 'json') [1] "[]"

returns an empty array. The same query plugged in the browser returns valid results: https://datacatalogbetastg.worldbank.org/api/dataset/node?fields=nid,type,status&parameters[type]=dataset&parameters[status]=0&pagesize=20&page=1

The issue pops up at the underlying output <- .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking) function

(Might also have something to do with authentication -> check)

tonyfujs commented 7 years ago

Not a code related bug. The problem comes from API authentication behavior.