rstudio / rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
http://rstudio.github.io/rsconnect/
133 stars 81 forks source link

rsconnect::deployApp fails to deploy an app with library on github (private repo) - http 401 unautorized #990

Closed porfila closed 1 year ago

porfila commented 1 year ago

This is a simple procedure to reproduce the problem

1/ Fork the daff package from https://github.com/edwindj/daff on your own github environment

2/ install the package from git (devtools::install_github("xxxx/daff"))

3/ create a standard shiny app project

4/ insert library(daff) in the script .... library(shiny) library(daff) ... 5/ This is the error we have

Unhandled Exception: Child Task 1334338495 failed: Error building image: Error fetching daff (0.3.8) source. Error accessing GitHub repository porfila/daff. HTTP 401: Unauthorized

ssinnott commented 1 year ago

Hello! Have you tried linking your github account to your shinyapps.io user?

There's a description of how to do over here:

https://support.posit.co/hc/en-us/articles/204536558-Enabling-use-of-private-packages-on-github-com-for-applications-on-shinyapps-io

porfila commented 1 year ago

thank you. The github account was already linked, I unchecked / checked the private repo checkbox on shiny io , and now it is working

aronatkins commented 1 year ago

Marking this closed, as re-linking with GitHub resolved the problem. If you continue to have trouble, please post to the community site or file a support request.

https://community.rstudio.com/c/shiny/shinyappsio/24