-
Notifications
You must be signed in to change notification settings - Fork 200
Unidentified values: withheld_scopewithheld_copyrightwithheld_in_countries. #647
Comments
Thanks for reporting this, this is enough to diagnose the problem. It seems that there are new fields on your data not previously reported by Twitter API documentation: If you could find which tweet has these fields I could add a test to make sure this still will work from now on and correctly ensure that it is correctly handled. |
Partial reprex: f <- rtweet::get_friends("71048726")
l <- rtweet::lookup_users(f$to_id)
#> Error in FUN(X[[i]], ...): Unidentified value: withheld_in_countries.
#> Please open an issue and notify the maintainer. Thanks! Created on 2022-01-31 by the reprex package (v2.0.1.9000) |
Reprex for the rest of it f <- rtweet::get_friends("15926695")
l <- rtweet::lookup_users(f$to_id)
#> Error in FUN(X[[i]], ...): Unidentified value: withheld_scopewithheld_copyrightwithheld_in_countries.
#> Please open an issue and notify the maintainer. Thanks! Created on 2022-01-31 by the reprex package (v2.0.1.9000) |
To make it minimal (easier to know where the problem is, and less API queries) I picked your second reprex. After exploring the values unparsed, I found which status was the one with these fields. lu <- rtweet::lookup_tweets("1168343686863892480") Surprisingly the text of the tweet says it is "This Tweet from @screenanme has been withheld in: United States." but the withheld_in_countries only says it is on XY and my query is not from United States! |
Just got this error from an
rtweet
call nested deep in some other code. Working on a reprex but posting here in the meantime per request in the error message itself.The text was updated successfully, but these errors were encountered: