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

Launching backup error #22

Closed
stefaniebutland opened this issue Feb 11, 2025 · 1 comment · Fixed by #23
Closed

Launching backup error #22

stefaniebutland opened this issue Feb 11, 2025 · 1 comment · Fixed by #23

Comments

@stefaniebutland
Copy link

Hello! A few of us were test-driving gitcellar today. Thanks for this package!!

In my case, it appears to have failed in launching backup of a repo that does not exist: stefaniebutland/ropenblog.
Let me know what further info might help:

> library(gitcellar)
> download_organization_repos(organizations = "stefaniebutland")
Launching archive creation for username stefaniebutland
Launching backup of stefaniebutland/ropenblog at 2025-02-11 15:19:07.999914
Error in `purrr::map2()`:
ℹ In index: 1.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `gh::gh()`:
! GitHub API error (422): Validation Failed
ℹ Read more at
  <https://docs.github.com/rest/migrations/users#start-a-user-migration>
resource field code
Migration repositories invalid_value
Migration repositories Migration
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In (function (..., deparse.level = 1)  :
  number of columns of result is not a multiple of vector length (arg 2)
@maelle
Copy link
Contributor

maelle commented Feb 13, 2025

Thanks @stefaniebutland! Would you mind trying again from the branch in #23? You can install the package from the branch using pak::pak("ropensci-org/gitcellar@roles")

What happened is that I list all repositories for an user, which unfortunately includes the repositories one is a collaborator of (like https://github.com/AustralianAntarcticDivision/ropenblog for you I assume). I had never encountered this because I've never run gitcellar for an user instead of an organization. In the branch I'm adding a filter to only keep repositories hosted at the personal account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants