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

configureApp fails with error in rlang::abort() #997

Closed
suresh-advaitabio opened this issue Sep 18, 2023 · 6 comments · Fixed by #1001
Closed

configureApp fails with error in rlang::abort() #997

suresh-advaitabio opened this issue Sep 18, 2023 · 6 comments · Fixed by #1001

Comments

@suresh-advaitabio
Copy link

suresh-advaitabio commented Sep 18, 2023

I am trying to set size with configureApp and it fails with rlang::abort()

> rsconnect::configureApp("asc_seurat", size="xlarge")
Error in `rlang::abort()`:
! `message` must be a character vector, not a list.
Run `rlang::last_trace()` to see where the error occurred
> rlang::last_trace(drop = FALSE)
<error/rlang_error>
Error in `rlang::abort()`:
! `message` must be a character vector, not a list.
---
Backtrace:
     ▆
  1. └─rsconnect::configureApp("asc_seurat", size = "xlarge")
  2.   └─client$setApplicationProperty(application$id, propertyName, propertyValue)
  3.     └─rsconnect:::PUT_JSON(service, authInfo, path, v, query)
  4.       └─rsconnect:::PUT(...)
  5.         └─rsconnect:::httpRequestWithBody(...)
  6.           └─rsconnect:::handleResponse(httpResponse, error_call = error_call)
  7.             └─rsconnect (local) reportError(json$error)
  8.               └─cli::cli_abort(...)
  9.                 └─rlang::abort(message = message)
 10.                   └─rlang:::validate_signal_args(...)
 11.                     └─rlang:::check_character(message, call = env)
 12.                       └─rlang:::stop_input_type(...)
 13.                         └─rlang::abort(message, ..., call = call, arg = arg)
> session_info()
─ Session info ──────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.1 (2023-06-16)
 os       macOS Ventura 13.5.2
 system   aarch64, darwin20
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
  rstudio  2023.06.1+524 Mountain Hydrangea (desktop)
 pandoc   3.1.7 @ /opt/homebrew/bin/pandoc

Please let me know if you have seen this error and if have a solution for this. If it is already posted and addressed, please share the link.

@aronatkins
Copy link
Contributor

The json$error does not look to be set on this type of error. Maybe all shinyapps.io errors?

The same error happens with an unknown "size" value.

rsconnect::configureApp(..., size = "fooey")

@aronatkins
Copy link
Contributor

@suresh-advaitabio - does the shinyapps.io UI let you assign an xlarge instance type?

Could you share the version of rsconnect?

packageVersion("rsconnect")

@suresh-advaitabio
Copy link
Author

It's the error from subscription. I think shinyapps needs to set up a better way of handling subscription errors.

@aronatkins
Copy link
Contributor

Reopening, because rsconnect should do a better job of displaying the errors from shinyapps.io.

@aronatkins aronatkins reopened this Sep 26, 2023
@hadley
Copy link
Member

hadley commented Sep 26, 2023

The problem is coming from https://github.com/rstudio/rsconnect/blob/main/R/http.R#L153 — I probably assumed that the error field was a simple string, but it's clearly something more complex.

@rodgpt
Copy link

rodgpt commented Oct 2, 2023

@suresh-advaitabio what do you mean by error from the subscription? did you manage to fix it? I am having exactly the same issue

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.

4 participants