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

Infinite recursion while paging? #147

Closed
jeroen opened this issue Dec 5, 2020 · 4 comments
Closed

Infinite recursion while paging? #147

jeroen opened this issue Dec 5, 2020 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@jeroen
Copy link
Member

jeroen commented Dec 5, 2020

When we automatically traverse pages, gh seems to run into some infinite loop and finding many more results than expected

# Find the number of repos for user 'rforge'
user <- gh::gh('/users/rforge')
print(user$public_repos) #2132

# Actually list these repos:
repos <- gh::gh('/users/rforge/repos', per_page = 100, .limit = 1e5)

This is gh_1.2.0.

@jeroen jeroen added the bug an unexpected problem or unintended behavior label Dec 5, 2020
@jeroen
Copy link
Member Author

jeroen commented Dec 5, 2020

Actually maybe it's just the progress bar that is very off.

@gaborcsardi
Copy link
Member

OK, that's better and makes sense. Thanks!

@gaborcsardi
Copy link
Member

# Find the number of repos for user 'rforge'
user <- gh::gh('/users/r-forge')
print(user$public_repos) #2132

# Actually list these repos:
repos <- gh::gh('/users/r-forge/repos', per_page = 100, .limit = 1e5)

@jeroen
Copy link
Member Author

jeroen commented Apr 30, 2021

Thanks!

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