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 (restartApp()) #864

Closed
ChaitaC opened this issue Jun 21, 2023 · 1 comment · Fixed by #870
Closed

Inaccurate feedback from logs (restartApp()) #864

ChaitaC opened this issue Jun 21, 2023 · 1 comment · 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: a3d883c
Problem: The rsconnect::restartApp() 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::restartApp( appName = "Your_app_name", server = "test_box", account = "Your_account_name")

Actual Result:
restarting fails with the following error message

rsconnect::restartApp(appName = "appname", account = "testaccount", 
server = "test_box")
Restarting application...
Error in `POST()`:
! <http://xxxxxxx:xxx/__api__/applications/xxxx/deploy> failed with
 HTTP status 500

Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/rsconnect_http_500>
Error in `POST()`:
! <http://xxxxxxxx:xxxx/__api__/applications/xxxx/deploy> failed 
with HTTP status 500
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
@ChaitaC
Copy link
Author

ChaitaC commented Jun 23, 2023

Verified

> rsconnect::restartApp( appName = "purgeapp-retest", server = "test_box", account = "chaitatest")
Error in `rsconnect::restartApp()`:
! `server` must be shinyapps.io
Run `rlang::last_trace()` to see where the error occurred.

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