-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
Description
Summary
Deploying a Shiny app to shinyapps.io with deployApp() fails with a "bad checksum" HTTP 400 error during bundle upload. This happens consistently with the dev version of rsconnect installed from GitHub.
GithubRepo: | rsconnect
-- | --
GithubUsername: | rstudio
GithubRef: | HEAD
GithubSHA1: | 591e6527751f08f6d75ab0109ef4ca1406341b5f
Steps to reproduce
- remotes::install_github("rstudio/rsconnect")
- rsconnect::deployApp(appDir = "/path/to/shiny/app")
Error
Error in POST():
! https://api.shinyapps.io/v1/bundles/11663820 failed with HTTP status 400
bad checksum
with options(rsconnect.httr2 = FALSE) App deployment succeeds:
> options(rsconnect.httr2 = FALSE)
> getOption("rsconnect.httr2")
[1] FALSE
> rsconnect::deployApp(appDir = "/Users/cchaudhari/shinyapp/shinyapp", appName = "shinyapp-1")
── Preparing for deployment ───────────────────────────────────────────────────────────────────
✔ Re-deploying "shinyapp-1" using "server: shinyapps.io / username: chaitatest"
ℹ Looking up content with id "16818495"...
✔ Found content <https://chaitatest.shinyapps.io/shinyapp-1/>
ℹ Bundling 1 file: app.R
ℹ Capturing R dependencies
✔ Found 30 dependencies
✔ Created bundle of size: 20,241b
ℹ Uploading bundle...
✔ Uploaded bundle with id 11663834
── Deploying to server ────────────────────────────────────────────────────────────────────────
Waiting for task: 1659510191
building: Building image: 14484050
building: Fetching packages
building: Installing packages
building: Installing files
building: Pushing image: 14484050
deploying: Starting instances
rollforward: Activating new instances
success: Stopping old instances
── Deployment complete ────────────────────────────────────────────────────────────────────────
✔ Successfully deployed to <https://chaitatest.shinyapps.io/shinyapp-1/>
with > options(rsconnect.httr2 = TRUE) app deployment fails
> options(rsconnect.httr2 = TRUE)
> getOption("rsconnect.httr2")
[1] TRUE
> rsconnect::deployApp(appDir = "/Users/cchaudhari/shinyapp/shinyapp", appName = "shinyapp-1")
── Preparing for deployment ───────────────────────────────────────────────────────────────────
✔ Re-deploying "shinyapp-1" using "server: shinyapps.io / username: chaitatest"
ℹ Looking up content with id "16818495"...
✔ Found content <https://chaitatest.shinyapps.io/shinyapp-1/>
ℹ Bundling 1 file: app.R
ℹ Capturing R dependencies
✔ Found 30 dependencies
✔ Created bundle of size: 20,243b
ℹ Uploading bundle...
Error in `POST()`:
! <https://api.shinyapps.io/v1/bundles/11663843> failed with HTTP status 400
bad checksum
Run `rlang::last_trace()` to see where the error occurred.
Your environment
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior