Closed cspenn closed 11 months ago
Are you sure that list id exists? Usually I get this error when I try to consult a list that doesn't exists any longer.
Ok, I can confirm that this time the problem is not the authentication.
It seems that somehow the numeric value is not understood well by R.
The number is (silently) converted from 1260956929205112834
to 1260956929205112832
:
opt <- options(digits = 22)
id <- 1260956929205112834
id
## 1260956929205112832
options(opt)
You can get request the right list if you quote it:
tweets <- lists_statuses(list_id = "1260956929205112834", verbose = TRUE)
I am not sure how you introduce that number, but perhaps it should change the documentation and only accept characters or I need figure out a way to prevent any "integer precision lost while converting to double" (as as.double(bit64::as.integer64(id))
warns the user)
A question on the same topic... is there any way of making list_members ignore the lists that do not work? Similar to what get_timelines does of just popping a message about the page not existing. In list_members the error brakes the process.
@lfagliano I can internally add a tryCatch and provide a warning instead of an error for these cases.
Hi! I'm getting the same error when launching get_friends, is there a way to ignore users that do not work and still get the rest of the output? thanks
Hi, @lfagliano and @heyitslau, could you open a different issue with some users where get_friends
fails. This way I can test it and we can discuss how to improve that instead of mixing issues here? Thanks
The exact error you get might be important to see if it is the same source and to decide how to fix it (or not).
Closing because I don't think I can do anything about this. I recommend to use characters so id_str instead of the id value returned by the API.
Problem
When running an API call, I get an error back for the lists_statuses function and the lists_members function.
Expected behavior
Should return tweets.
Reproduce the problem
rtweet version
Session info