Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_site() fails with API error #2792

Closed
pachadotdev opened this issue Oct 6, 2024 · 4 comments
Closed

build_site() fails with API error #2792

pachadotdev opened this issue Oct 6, 2024 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@pachadotdev
Copy link

MWE:

Open any package in RStudio (or clone one from GitHub), then run

pkgdown::build_site

Error:

> build_site()
Error: 
! in callr subprocess.
Caused by error: 
! '/home/pacha/github/cpp11tesseract/docs' is non-empty and not built by pkgdown
ℹ See `$stdout` for standard output.
Type .Last.error to see the more details.
> build_site()
Error: 
! in callr subprocess.
Caused by error: 
! '/home/pacha/github/cpp11tesseract/docs' is non-empty and not built by pkgdown
ℹ See `$stdout` for standard output.
Type .Last.error to see the more details.
> build_site()
Error: 
! in callr subprocess.
Caused by error: 
! API request failed.
ℹ See `$stdout` and `$stderr` for standard output and error.
Type .Last.error to see the more details.

Session info:

> session_info()
─ Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.1 (2024-06-14)
 os       Pop!_OS 22.04 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  en_CA.UTF-8
 ctype    en_CA.UTF-8
 tz       America/Toronto
 date     2024-10-06
 pandoc   2.9.2.1 @ /usr/bin/ (via rmarkdown)

─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────
 ! package        * version date (UTC) lib source
   askpass          1.2.0   2023-09-03 [3] CRAN (R 4.3.1)
   brio             1.1.4   2023-12-10 [3] CRAN (R 4.3.2)
   bspm             0.5.5   2023-08-22 [2] CRAN (R 4.3.2)
   cachem           1.0.8   2023-05-01 [3] CRAN (R 4.3.0)
   callr            3.7.3   2022-11-02 [3] CRAN (R 4.2.2)
   cli              3.6.2   2023-12-11 [3] CRAN (R 4.3.2)
   commonmark       1.9.1   2024-01-30 [3] CRAN (R 4.3.2)
   cpp11            0.5.0   2024-08-27 [1] CRAN (R 4.4.1)
 P cpp11tesseract * 5.3.0   2024-09-23 [?] load_all()
   curl             5.0.2   2023-08-14 [3] CRAN (R 4.3.1)
   decor            1.0.2   2023-07-01 [1] CRAN (R 4.4.0)
   desc             1.4.3   2023-12-10 [3] CRAN (R 4.3.2)
   devtools       * 2.4.5   2022-10-11 [1] CRAN (R 4.4.1)
   digest           0.6.34  2024-01-11 [3] CRAN (R 4.3.2)
   ellipsis         0.3.2   2021-04-29 [3] CRAN (R 4.1.1)
   evaluate         0.23    2023-11-01 [3] CRAN (R 4.3.2)
   fansi            1.0.6   2023-12-08 [3] CRAN (R 4.3.2)
   fastmap          1.1.1   2023-02-24 [3] CRAN (R 4.2.2)
   fs               1.6.3   2023-07-20 [3] CRAN (R 4.3.1)
   glue             1.7.0   2024-01-09 [3] CRAN (R 4.3.2)
   htmltools        0.5.7   2023-11-03 [3] CRAN (R 4.3.2)
   htmlwidgets      1.6.4   2023-12-06 [3] CRAN (R 4.3.2)
   httpuv           1.6.14  2024-01-26 [3] CRAN (R 4.3.2)
   jsonlite         1.8.8   2023-12-04 [3] CRAN (R 4.3.2)
   knitr            1.45    2023-10-30 [3] CRAN (R 4.3.2)
   later            1.3.2   2023-12-06 [3] CRAN (R 4.3.2)
   lifecycle        1.0.4   2023-11-07 [3] CRAN (R 4.3.2)
   magrittr         2.0.3   2022-03-30 [3] CRAN (R 4.2.0)
   memoise          2.0.1   2021-11-26 [3] CRAN (R 4.2.0)
   mime             0.12    2021-09-28 [3] CRAN (R 4.2.0)
   miniUI           0.1.1.1 2018-05-18 [3] CRAN (R 4.0.1)
   pdftools         3.4.0   2023-09-25 [3] CRAN (R 4.3.1)
   pillar           1.9.0   2023-03-22 [3] CRAN (R 4.2.3)
   pkgbuild         1.4.3   2023-12-10 [3] CRAN (R 4.3.2)
   pkgconfig        2.0.3   2019-09-22 [3] CRAN (R 4.0.1)
   pkgdown          2.0.7   2022-12-14 [3] CRAN (R 4.2.2)
   pkgload          1.3.4   2024-01-16 [3] CRAN (R 4.3.2)
   processx         3.8.3   2023-12-10 [3] CRAN (R 4.3.2)
   profvis          0.3.8   2023-05-02 [3] CRAN (R 4.3.0)
   promises         1.2.1   2023-08-10 [3] CRAN (R 4.3.1)
   ps               1.7.6   2024-01-18 [3] CRAN (R 4.3.2)
   purrr            1.0.2   2023-08-10 [3] CRAN (R 4.3.1)
   qpdf             1.3.2   2023-03-17 [3] CRAN (R 4.2.3)
   R6               2.5.1   2021-08-19 [3] CRAN (R 4.2.0)
   rappdirs         0.3.3   2021-01-31 [3] CRAN (R 4.2.0)
   Rcpp             1.0.12  2024-01-09 [3] CRAN (R 4.3.2)
   remotes          2.4.2.1 2023-07-18 [3] CRAN (R 4.3.1)
   rlang            1.1.3   2024-01-10 [3] CRAN (R 4.3.2)
   rmarkdown        2.25    2023-09-18 [3] CRAN (R 4.3.1)
   roxygen2         7.3.1   2024-01-22 [3] CRAN (R 4.3.2)
   rprojroot        2.0.4   2023-11-05 [3] CRAN (R 4.3.2)
   rstudioapi       0.15.0  2023-07-07 [3] CRAN (R 4.3.1)
   sessioninfo      1.2.2   2021-12-06 [3] CRAN (R 4.2.0)
   shiny            1.8.0   2023-11-17 [3] CRAN (R 4.3.2)
   stringi          1.8.3   2023-12-11 [3] CRAN (R 4.3.2)
   stringr          1.5.1   2023-11-14 [3] CRAN (R 4.3.2)
   tibble           3.2.1   2023-03-20 [3] CRAN (R 4.3.1)
   urlchecker       1.0.1   2021-11-30 [1] CRAN (R 4.4.1)
   usethis        * 2.2.2   2023-07-06 [3] CRAN (R 4.3.1)
   utf8             1.2.4   2023-10-22 [3] CRAN (R 4.3.2)
   vctrs            0.6.5   2023-12-01 [3] CRAN (R 4.3.2)
   withr            3.0.0   2024-01-16 [3] CRAN (R 4.3.2)
   xfun             0.41    2023-11-01 [3] CRAN (R 4.3.2)
   xml2             1.3.6   2023-12-04 [3] CRAN (R 4.3.2)
   xtable           1.8-4   2019-04-21 [3] CRAN (R 4.0.1)
   yaml             2.3.8   2023-12-11 [3] CRAN (R 4.3.2)

 [1] /home/pacha/R/x86_64-pc-linux-gnu-library/4.4
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library

 P ── Loaded and on-disk path mismatch.
@pachadotdev
Copy link
Author

the problem is here https://github.com/r-lib/pkgdown/blob/main/R/build-favicons.R#L69
but it is because realfavicongenerator.net is broken, https://realfavicongenerator.net/api/favicon leads to a blank page and the github and email sign in no longer work

@maelle maelle added the bug an unexpected problem or unintended behavior label Oct 7, 2024
@maelle
Copy link
Collaborator

maelle commented Oct 7, 2024

Thank you for the report @pachadotdev

@maelle
Copy link
Collaborator

maelle commented Oct 7, 2024

@maelle
Copy link
Collaborator

maelle commented Oct 8, 2024

It now works again! 🎉

@maelle maelle closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants