Error in deploying shiny app

I am having issues deploying my app to shinyapps.io.

When I deploy it, it starts up alright, then it comes up with this error:

Preparing to deploy application...DONE
Uploading bundle for application: 1535708...DONE
Deploying bundle: 2729500 for application: 1535708 ...
Waiting for task: 683067389
  building: Parsing manifest
  building: Building image: 2983839
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_DECRYPT_FAILURE (0x80090330) - The specified data could not be decrypted.
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0 0 1.04
Execution halted

Any ideas on how to fix this? It runs fine on my desktop.

Additional note: I have noticed that the app does actually deploy to shinyapps.io (with changes) despite the error. Still though, it would be good to work out what the issue is. Thanks.

What version of the rsconnect package are you using?
What is your local operating system?
Do you have any proxies or firewalls between you and the internet?

Hi Josh,

I was running rsconnect version 0.8.15 but have now upgraded to 0.8.16.

I am running Windows 10. I am at work so I assume that there are lots of firewalls.

However, it has uploaded in the past without any issues. Or at other times, there would be an error, (a different one, but I don't remember what it was), but then it would work a couple of hours later.

Anyway, this is the latest message:

Preparing to deploy application...DONE
Uploading bundle for application: 1535708...DONE
Deploying bundle: 2731992 for application: 1535708 ...
Waiting for task: 683331525
  building: Parsing manifest
  building: Building image: 2987273
  building: Installing system dependencies
  building: Fetching packages
  building: Installing packages
  building: Installing files
  building: Pushing image: 2987273
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_DECRYPT_FAILURE (0x80090330) - The specified data could not be decrypted.
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0 0 1.01
Execution halted

Let me try to loop in one of the developers of the rsconnect package to this topic.

Meantime, could you re-run with the options rsconnect.http.verbose and rsconnect.http.trace set to TRUE and post the output?

Hi Josh,

I reran it with these:

options(rsconnect.http.trace = TRUE)
options(rsconnect.http.verbose = TRUE)

I got this error (the code is different):

Preparing to deploy application...DONE
Uploading bundle for application: 1535708...DONE
Deploying bundle: 2739988 for application: 1535708 ...
Waiting for task: 684236297
  building: Parsing manifest
  building: Building image: 2997594
  building: Installing system dependencies
  building: Installing packages
  building: Installing files
  building: Pushing image: 2997594
Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0 0 1.3
Execution halted

It says there is a token issue, but I haven't changed it since last time.

I have to say I am surprised that there was not any debugging output.

@jonathan do you have any thoughts?