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

get_user_info needs pagination #14

Closed
JBGruber opened this issue Feb 13, 2024 · 0 comments
Closed

get_user_info needs pagination #14

JBGruber opened this issue Feb 13, 2024 · 0 comments

Comments

@JBGruber
Copy link
Owner

It looks like there is a limit how many actors can go into the get_user_info function. Below 26 is fine, but then:

library(atrrr)
df <- search_post("Amsterdam", limit = 200)
#> ℹ Found an *unknown total* of posts that fit the query
#> ⠙ Got 97 posts, but there is more.. [1.2s]
#> ⠹ Got 192 posts, but there is more.. [1.6s]
#> ⠸ Got 285 posts, but there is more.. [1.9s]
#> ℹ Parsing 285 results.
#> ✔ Got 285 results. All done!
#> 
user_info <- get_user_info(actor = df$author_handle)
#> Error in `httr2::req_perform()` at atrrr/R/utils.r:57:5:
#> ! HTTP 400 Bad Request.
#> • error type: InvalidRequest
#> • message: Error: actors must not have more than 25 elements

Created on 2024-02-13 with reprex v2.1.0

We should fix this, since we take care of pagination elsewhere (e.g., in search_post). So why not here.

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

No branches or pull requests

1 participant