Closed tonyfujs closed 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¶meters[type]=dataset¶meters[status]=0&pagesize=20&page=1
The issue pops up at the underlying output <- .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking) function
output <- .Call(R_curl_fetch_memory, enc2utf8(url), handle, nonblocking)
(Might also have something to do with authentication -> check)
Not a code related bug. The problem comes from API authentication behavior.
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¶meters[type]=dataset¶meters[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)