You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
I'm using get_favorites to receive some users likes. It seems to randomly fail for some users. I figured these were always users with short ids. E.g.:
get_favorites("515880511",token=token)
Error: Twitter API failed [401]
* ()
The documentation says "User identifiers look like regular numbers, but are actually 64-bit integers which can't be stored in R's numeric vectors. For this reason, rtweet always returns ids as strings." so I am storing the id as a string.
Expected behavior
The expected behavior would be to return a set of "liked" tweets
Reproduce the problem
get_favorites("515880511",token=token)
rtweet version
‘0.7.0.9000’
The text was updated successfully, but these errors were encountered:
Are you sure that this account does still exist and it is not blocked? Maybe the error should be handled different but if I try something similar with another service I don't get any data from Twitter and if I try with blocked users I get the same error: get_favorites("realdonaltrump") even if the webpage still exists
Weird, yesterday it couldn't find it, maybe I write it wrong. Anyway, the account is locked probably it is the reason you can't retrieve their favorites (and probably any other data). Will try to make the error more informative if not providing an empty data.frame with a column indicating it is locked.
Problem
I'm using
get_favorites
to receive some users likes. It seems to randomly fail for some users. I figured these were always users with short ids. E.g.:The documentation says "User identifiers look like regular numbers, but are actually 64-bit integers which can't be stored in R's numeric vectors. For this reason, rtweet always returns ids as strings." so I am storing the id as a string.
Expected behavior
The expected behavior would be to return a set of "liked" tweets
Reproduce the problem
rtweet version
‘0.7.0.9000’
The text was updated successfully, but these errors were encountered: