Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user_list does not work #26

Closed
wush978 opened this issue May 11, 2015 · 2 comments
Closed

user_list does not work #26

wush978 opened this issue May 11, 2015 · 2 comments

Comments

@wush978
Copy link
Contributor

wush978 commented May 11, 2015

Dear @sckott ,

The user_list does not work properly with default value:

> a <- user_list()
 Hide Traceback

 Rerun with Debug
 Error: length(names(body)) > 0 is not TRUE 
8 stop(sprintf(ngettext(length(r), "%s is not TRUE", "%s are not all TRUE"), 
    ch), call. = FALSE, domain = NA) 
7 stopifnot(length(names(body)) > 0) 
6 body_config(body, encode) 
5 perform(handle, writer, method, opts, body) 
4 make_request("post", hu$handle, hu$url, config, body_config(body, 
    encode)) 
3 POST(file.path(url, ck(), method), body = body, ...) at zzz.R#23
2 ckan_POST(url, "user_list", body = body, ...) at user_list.R#14
1 user_list() 

I guess the reason is that both q and order_by are NULL.

@wush978 wush978 mentioned this issue May 11, 2015
@sckott sckott closed this as completed in 226c28a May 11, 2015
@sckott
Copy link
Contributor

sckott commented May 11, 2015

@wush978 should work now, try it out

@wush978
Copy link
Contributor Author

wush978 commented May 11, 2015

Yes, thanks! wush978@d823b0e in #28 implements the test for user_list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants