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

typo in showUsers? "listApplicationAuthoization" causing non-function error #398

Closed
blakiseskream opened this issue Jan 11, 2020 · 1 comment

Comments

@blakiseskream
Copy link

res <- api$listApplicationAuthoization(application$id)

Two things,

  1. There appears to be a typo in showUsers, where listApplicationAuthoization should read listApplicationAuthorization.
  res <- api$listApplicationAuthorization(application$id)

The code is currently outputting this error because of this,

Error in api$listApplicationAuthoization(application$id) : 
  attempt to apply non-function
  1. There is no function on the api object called listApplicationAuthorization. Which means that despite fixing the typo code still doesn't work. Is there another function in the api object that should be used?
# At line 155
 application <- rsconnect:::resolveApplication(accountDetails, appName)
 api <- rsconnect:::clientForAccount(accountDetails)
 str(api)

List of 16
 $ serverSettings      :function ()  
 $ addUser             :function (userRecord)  
 $ getUser             :function (userId)  
 $ currentUser         :function ()  
 $ addToken            :function (token)  
 $ listApplications    :function (accountId, filters = NULL)  
 $ createApplication   :function (name, title, template, accountId)  
 $ terminateApplication:function (applicationId)  
 $ uploadApplication   :function (appId, bundlePath)  
 $ deployApplication   :function (applicationId, bundleId = NULL)  
 $ configureApplication:function (applicationId)  
 $ getApplication      :function (applicationId)  
 $ listTasks           :function ()  
 $ getTask             :function (taskId)  
 $ killTask            :function (taskId)  
 $ waitForTask         :function (taskId, quiet)  
@jmcphers
Copy link
Member

jmcphers commented Mar 7, 2020

I have corrected the typo (though it wasn't really a problem since it matched a typo on the underlying method!)

The real problem here is that you're trying to use this method with a Connect account; it only works with Shinyapps accounts. I have added an error message to make this more clear.

57239c3

@jmcphers jmcphers closed this as completed Mar 7, 2020
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