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

Bug: when there is more than one app with the same name the code breaks #202

Closed
cormach opened this issue Aug 1, 2023 · 0 comments
Closed
Labels
bug an unexpected problem or unintended behavior

Comments

@cormach
Copy link
Contributor

cormach commented Aug 1, 2023

When running connectapi::deploy(), the code fails when there is more than one app with the same name in the Posit Connect instance.

https://github.com/rstudio/connectapi/blob/main/R/content.R#L536

The error is

Error in eval(parse(text = text, keep.source = FALSE), envir) : 
  object 'to_content' not found
Calls: <Anonymous> -> content_ensure

The code currently references is as follows:

if (length(content) > 1) {
      stop(glue::glue(
        "Found {length(to_content)} content items ",
        "matching {name} on {connect$server}",
        ", content must have a unique name."
      ))

The problem occurs because to_content isn't defined

@colearendt colearendt added the bug an unexpected problem or unintended behavior label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants