Skip to content

Build error: Missing value in while (tries < max_tries && Sys.time() < deadline (httr2) #2855

@jhollway

Description

@jhollway

I am encountering the same issue when trying to build a pkgdown site for several packages. Essentially the site building process aborts when trying to build the news (it also occurs when I use pkgdown::build_news()).

pkgdown:::build_site()
...
── Building news ───────────────────────────────────────────────────────────────
Error: 
! in callr subprocess.
Caused by error in `while (tries < max_tries && Sys.time() < deadline) { …`:
! missing value where TRUE/FALSE needed
ℹ See `$stdout` and `$stderr` for standard output and error.

From the backtrace(below), it seems to be an issue what what pkgdown:::pkg_timeline() is passing to httr2::req_perform(), as that is where the error is thrown.

1. pkgdown:::build_site()
2. pkgdown:::build_site_external(pkg = pkg, examples = examples, run_dont_run = run_dont_run, …
3. callr::r(function(..., cli_colors, hyperlinks, pkgdown_internet) { …
4. callr:::get_result(output = out, options)
5. callr:::throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]]))
---
Subprocess backtrace:
1. pkgdown::build_site(...)
2. pkgdown:::build_site_local(pkg = pkg, examples = examples, run_dont_run = run_dont_run, …
3. pkgdown::build_news(pkg, override = override, preview = FALSE)
4. pkgdown:::build_news_single(pkg)
5. pkgdown:::data_news(pkg)
6. pkgdown:::pkg_timeline(pkg$package)
7. httr2::req_perform(req)
8. base::.handleSimpleError(function (e) …
9. global h(simpleError(msg, call))

I should add that this occurs for packages that are on CRAN and that have (had) pkgdown sites built in the past without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions