Skip to content

Need new method of creating orphan gh-pages branch in use_github_pages() #1472

@mikeroswell

Description

@mikeroswell

Hi,

And thanks for your support, as I've already received some help on this issue. I was told that the 500 errors were on the github side and likely intermittent but have been getting them now every time I try for a week, wondering if you know what I might do. Not sure how to make this reproducible but system info and error messages copied below:

R.Version()
$platform
[1] "x86_64-apple-darwin17.0"

$arch
[1] "x86_64"

$os
[1] "darwin17.0"

$system
[1] "x86_64, darwin17.0"

$status
[1] ""

$major
[1] "4"

$minor
[1] "1.0"

$year
[1] "2021"

$month
[1] "05"

$day
[1] "18"

$`svn rev`
[1] "80317"

$language
[1] "R"

$version.string
[1] "R version 4.1.0 (2021-05-18)"

$nickname
[1] "Camp Pontanezen"

> usethis::use_pkgdown_github_pages()
• Record your site's url in the pkgdown config file (optional, but recommended)
• Modify '_pkgdown.yml'
✓ Initializing empty, orphan 'gh-pages' branch in GitHub repo 'mikeroswell/MeanRarity'
Error in gh_process_response(raw) : 
GitHub API error (500): 
Message: 
Type .Last.error.trace to see where the error occurred
> .Last.error.trace
$calls
$calls[[1]]
usethis::use_pkgdown_github_pages()

$calls[[2]]
use_github_pages()

$calls[[3]]
create_gh_pages_branch(tr, branch = "gh-pages")

$calls[[4]]
gh("POST /repos/{owner}/{repo}/git/commits", message = "first commit", 
    tree = sha_empty_tree)

$calls[[5]]
gh::gh(endpoint, ..., owner = tr$repo_owner, repo = tr$repo_name, 
    .api_url = tr$api_url)

$calls[[6]]
gh_process_response(raw)

$calls[[7]]
gh_error(response)

$calls[[8]]
throw(cond)


$parents
[1] 0 1 2 3 4 5 6 7

$envs
$envs[[1]]
[1] "0x7fb8bdbf85c8"

$envs[[2]]
[1] "0x7fb8b92ee440"

$envs[[3]]
[1] "0x7fb8bec5c9c8"

$envs[[4]]
[1] "0x7fb8bd3e4d90"

$envs[[5]]
[1] "0x7fb8bd3e85a0"

$envs[[6]]
[1] "0x7fb8bd7664e0"

$envs[[7]]
[1] "0x7fb8bd765750"

$envs[[8]]
[1] "0x7fb8bd783120"


$topenvs
$topenvs[[1]]
[1] "namespace:usethis"

$topenvs[[2]]
[1] "namespace:usethis"

$topenvs[[3]]
[1] "namespace:usethis"

$topenvs[[4]]
[1] "namespace:usethis"

$topenvs[[5]]
[1] "namespace:gh"

$topenvs[[6]]
[1] "namespace:gh"

$topenvs[[7]]
[1] "namespace:gh"

$topenvs[[8]]
[1] "0x7fb8bec01298"


$indices
[1] 1 2 3 4 5 6 7 8

$nframes
[1] 8

$messages
$messages[[1]]
[1] "\nGitHub API error (500): \nMessage: "


$ignore
NULL

$classes
[1] "github_error"   "http_error_500" "error"          "condition"     

$pids
[1] 24611 24611 24611 24611 24611 24611 24611 24611

attr(,"class")
[1] "rlib_trace"

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