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

Inaccurate feedback from logs (purgeApp()) #863

Closed
ChaitaC opened this issue Jun 21, 2023 · 0 comments · Fixed by #870
Closed

Inaccurate feedback from logs (purgeApp()) #863

ChaitaC opened this issue Jun 21, 2023 · 0 comments · Fixed by #870
Assignees

Comments

@ChaitaC
Copy link

ChaitaC commented Jun 21, 2023

RStudio Version 2023.08.0-daily+46
R-4.1.0
rsconnect

RemoteType: github
RemoteSha: a3d883cbf3ff37fce603a7276cf7cbbec2c0ef12

Problem: The rsconnect::purgeApp() function is designed to work exclusively with Shiny Servers. However, when a user attempts to use it for an app deployed on a Connect server, the logs provide inaccurate feedback.

Steps:

  1. Deploy an app on Posti Connect
  2. Navigate to IDE --> console
  3. Run rsconnect::purgeApp( appName = "Your_app_name", server = "test_box", account = "Your_account_name")

Actual Result:
purging fails with the following error message

Purging application...
Error in client$purgeApplication(application$id) : 
  attempt to apply non-function

Expected Result:
Mention more accurate message eg: This method only works for ShinyApps server

aronatkins added a commit that referenced this issue Jun 22, 2023
addAuthorizedUser
removeAuthorizedUser
showUsers
showInvited
resendInvitation
configureApp
setProperty
unsetProperty
purgeApp
restartApp
terminateApp
showUsage
showMetrics

Fixes #863
Fixes #864
@aronatkins aronatkins self-assigned this Jun 23, 2023
aronatkins added a commit that referenced this issue Jun 23, 2023
* enforce that the target server is shinyapps.io

addAuthorizedUser
removeAuthorizedUser
showUsers
showInvited
resendInvitation
configureApp
setProperty
unsetProperty
purgeApp
restartApp
terminateApp
showUsage
showMetrics

Fixes #863
Fixes #864

* always with the trailing whitespace

* documentation
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

Successfully merging a pull request may close this issue.

2 participants