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.
Related
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.
I am attempting to install Font Awesome Pro in my NextJS app, which is deployed via Vercel. However, I keep getting this error:
error An unexpected error occurred: "https://npm.fontawesome.com/#fortawesome/pro-light-svg-icons/-/5.15.4/pro-light-svg-icons-5.15.4.tgz: Request failed \"401 Unauthorized\""
Then the build exits with Error: Command "yarn install" exited with 1
Locally everything works great. I have the following in my .npmrc file:
#fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=NPM_RC
And then within Vercel settings I have an environmental variable with the name NPM_RC and the value is my personal Pro-Token.
As an aside: I tried doing a global setup using my token but that returns the same error mentioned above. When I reached out to Font Awesome they said that Global setups can be hit or miss and that I should try the .npmrc route.
I reached out to Font Awesome after giving the .npmrc route and try and still having the error. They are not sure what is going on... I am stuck and any help would be greatly appreciated. Cheers!
I needed to update my .npmrc file with the following:
#fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${NPM_RC}
Thank you #robmadole!
everyone!
I am having problems deploying my Shiny App. When deploying the app, I get the following console output:
Preparing to deploy application...DONE
Uploading bundle for application: 177552...DONE
Deploying bundle: 813581 for application: 177552 ...
Waiting for task: 383835116
building: Parsing manifest
################################ Begin Task Log ################################
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 383835121 failed: Error parsing manifest: Manifest file manifest.json checksum mismatch
Execution halted
Please take into account the following facts:
I've already checked this solution, and it didn't work:
Deploy R app in shinyapps.io- Error:parsing manifest [SOLVED]
Also, I've had saved a previous working version of the app, downloaded it back via the "download bundle" option of ShainyApps, and I get the same message.
What can I do in order to solve this? Thanks a lot! Don't hesitate to ask me for further details if necessary.
Adding to Elias's answer. When you download a Shiny bundle, there is a file included called "manifest.json". Checksum error here.
Delete "manifest.json" and deploy app again.
Maybe it's not a solution, but it's a way of preventing the error. The "trigger" of the error is the fact that I was working on the Shiny bundle obtained using "download bundle" option of ShinyApps. It's possible it has to do with the encoding or the MD5 checksum, but NEVER work on files from the bundle. I can state the aforementioned as I had a copy on GitHub, cloned it, worked on it, deployed the new version, and it worked! Thanks!
I get this Error when trying to start my application on my server with the command:
meteor
error:
Error: EISDIR: illegal operation on a directory, unlink '/home/.../.../myapp/.meteor /local/dev_bundle'
at Error (native)
at Object.fs.unlinkSync (fs.js:932:18)
at exports.makeLink (/tools/cli/dev-bundle-links.js:20:8)
at [object Object].ensureDevBundleLink (/tools/project-context.js:1416:7)
at [object Object]._readFile (/tools/project-context.js:1350:10)
at new exports.ReleaseFile (/tools/project-context.js:1300:8)
at /tools/cli/main.js:825:22
My app is running fine on my dev. win. machine.
I have no idea what is causing the error, please help.
I got it working by manually removing all directories and links where the name started with "dev_bundle" inside the "/.meteor/local" directory.
Hope this helps!
Also update meteor to the latest version using meteor update and then follow #henk's solution.
This worked for me.
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.