Error: Unhandled Exception: 'NoneType' object has no attribute '__getitem__' - r

I am loading one of the example apps from Shiny R into ShiniApps.io`
library(shinyapps)
shinyapps::setAccountInfo(name='xxx', token='xxx', secret='xxx')
deployApp("01_hello")
and then I get this error:
Error: Unhandled Exception: 'NoneType' object has no attribute 'getitem'
The app appeared in the web-page of Shinyapps.io as "undeployed".
Any clue what may be causing this error? the error is the same whether I run R 64 or 32 bit.

I had the same problem today. I wasn't able to successfully deploy a new app (getting the same error), but I was able to redeploy a previous app.
I have tried removing all packages and code from my new app (left only empty shinyServer and shinyUI functions uncommented) and still couldn't deploy.
Restarted R several times. Updated all packages. Nothing helped.
A few hours later I tried to deploy again and it passed without errors.
I know this is not exactly an answer but I suspect it was a server-side error because it failed during the "Starting instances" step of deployment.
So try to deploy it again, hope it works this time.

Related

Error when deploy Shiny: "An error has occurred. The application failed to start. exit status 1"

I encounter an error when trying to publish my shiny apps, the code runs perfectly in the local R studio. However when I tried to deploy the Shiny I had this error
"An error has occurred
The application failed to start.
exit status 1"
error image
I have tried to clean the global environment and rerun the codes but same issue still occur. There are no warning message or errors in the r studio console as well. Any thoughts on what is causing this error?
Thank you in advance.

Electron run on Nodejs. A JavaScript error occurred in the main process. Error spawn {path} Enoent

I've made a Shinyapp, and try to turn it into a standalone application through Nodejs and Electron.
I've sucessfully made it on Windows. However, when I work on macOS, I encounter this error:
A JavaScript error occurred in the main process
Uncaught Exception: Error: spawn {path of electron file} Enoent at ...the error displayed
Guess there's something wrong in Nodejs, but I'm a total newbie to nodejs. Have tried to add the file path into PATH environment variable, but it did not wrok. The same error appears.
Looking for someone who can help me sort it out.
I appreciate any help from you!!

R - Unable to deploy application on shinyapps.io because of expired token

Since yesterday evening I could easily deploy and update my shiny application on shinyapps.io. Today I made few changes, tried to deploy again, and I am getting the following error which I don't know what it refers to:
Preparing to deploy application...DONE
Uploading bundle for application: 1099846...DONE
Deploying bundle: 6170071 for application: 1099846 ...
Waiting for task: 1198780170
error: Processing bundle: 6170071
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 1198780173 error: Unhandled Exception: An error occurred (ExpiredTokenException) when calling the AssumeRoleWithWebIdentity operation: Token expired: current date/time 1659692079 must be before the expiration date/time16596
Execution halted
I tried to create a new token on shinyapps.io for the rsconnect package, but it doesn't work. Do you know how to solve this problem? Thanks
UPDATE: I tried to re-deploy it one time and it worked, then I tried again and it's not working again.
I also went on the shinyapps.io website, and tried to delete an old application, and I got the same error. Does it means they're having problems on their side?
Just had the same issue. I went on to my Shinyapps dashboard and re-copied across the token and secret from there to our GitHub repo settings. Re-deployed and all went well.

Deploy R app in shinyapps.io - Error: HTTP 404

When i try to publish R app in shinyapps.io , it shows an error:
Preparing to deploy application...Error: HTTP 404
GET https://api.shinyapps.io/v1/applications/461629
Not Found
Execution halted
How can I solve this error?
You probably deleted the app before you tried to publish it. In this case clearing the contents of the folder named rsconnect/shinyapps.io will solve the issue.

Error: Unhandled Exceptions when trying to deploy / (re)publish ShinyApps.io

I have a shiny app that depends on a GitHub package. I recently updated the GitHub package, so I want to republish the shiny app as well. I have made no changes to the shiny app code at all, and it runs without error in RStudio. But, when I go to republish it, I get these messages in the Deploy tab of RStudio.
Preparing to deploy document...DONE
Uploading bundle for document: 96244...DONE
Deploying bundle: 426681 for document: 96244 ...
Waiting for task: 180459152
building: Parsing manifest
building: Building image: 419646
building: Building package: xtable
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 180459153 error: Unhandled Exception: HTTP 599: Connection closed
Execution halted
I am running the latest versions of R (3.2.5) and RStudio (0.99.893) on Windows 7, and I made sure all the packages have been updated.
I searched around for folks reporting similar errors (and solutions) and found didn't find anything helpful.
I'd appreciate any tips.
Links:
Shiny app - if it says "Last modified: 7 January 2016", it's still the old version that I'm trying to replace.
Code for shiny app
GitHub package
Did you update to R 3.2.5? It seems shinyapps.io is not ready for this.
I had these errors yesterday. Roll back to 3.2.4 and it will work.
Note this is confirmed in shinyapps forum:
"Is it at all possible that you are running with R version 3.2.5? If
so, downgrading to 3.2.4 should fix this issue. The error message
should be saying something like: shinyapps.io doesn't support this
version of R yet."

Resources