twitter broke for me today/yesterday
[twitter][error] AuthenticationError: Login rejected as suspicious
Not sure what's new? is this a configuration error on my end or did twitter break for everyone?
I had been logging in to twitter via username and password in the conf file for years just fine...
I can login on chrome just fine so my account is not nuked or anything.
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.x.com:443 [urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json?flow_name=login HTTP/1.1" 200 245 [twitter][debug] Sleeping 1.15 seconds (login (LoginJsInstrumentationSubtask)) [urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json HTTP/1.1" 200 971 [twitter][debug] Sleeping 1.34 seconds (login (LoginEnterUserIdentifierSSO)) [urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json HTTP/1.1" 200 618 [twitter][error] AuthenticationError: Login rejected as suspicious
I mean, it looks like the end of your debug output says it in as much detail as you're likely to get from Twitter- "Login rejected as suspicious"
A few questions that might point in the direction of a fix that come to mind might be: What method are you using to authenticate your Twitter account? Are you using a proxy/VPN to redirect your traffic? Is this an account that you use for other purposes as well, and do you use it with the same proxy/VPN endpoint (if any)? Is/was the account logged-in or being actively used at the same time you got this error, e.g. on your phone, in your browser, etc.?
I got the same error. Last time I try it was on Sept 10th, and it worked. "[twitter][error] AuthenticationError: Login rejected as suspicious"
Using cookies works, it looks like only username+password is broken
I tried to use --cookies-from-browser chrome, but it said "cookies: [Errno 13] Permission denied: ".
Do you have any idea about it? I am using Windows Chrome.
I tried to use
--cookies-from-browser chrome, but it said "cookies: [Errno 13] Permission denied: ". Do you have any idea about it? I am using Windows Chrome.
Chrom(ium) made an update some time ago that blocked the access to the cookies database by not elevated process or processes not signed by Google Chrome, so if you have the last version you can't use that argument. https://security.googleblog.com/2024/07/improving-security-of-chrome-cookies-on.html
If you have an old version, try closing Chrome before launching gallery-dl.
If none of those work, you will have to extract cookies from an account that is not flagged as suspicious and use --cookies cookies.txt
I tried to use
--cookies-from-browser chrome, but it said "cookies: [Errno 13] Permission denied: ". Do you have any idea about it? I am using Windows Chrome.
I always just use --cookies "D:\gallery-dl\twitter_cookies.txt" and supply the file myself using a chrome extension like get cookies.txt locally
Edit: Everyone here seems to be talking about authentication, so I've confirmed with --verbose that my issue is not caused by the authentication process. Maybe I'll create a separate issue later.
I always use the cookie file --cookies "twitter.com_cookies.txt") & don't have any issues with authentication. But since last week I can't download any media.
[gallery-dl][debug] Version 1.27.5
[gallery-dl][debug] Python 3.12.4 - Windows-10-10.0.19045-SP0
[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.2
[gallery-dl][debug] Configuration Files ['twitter.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://x.com/search?q=from:{redacted} since:2024-09-23 until:2024-10-03&src=typed_query&f=live'
[twitter][debug] Using TwitterSearchExtractor for 'https://x.com/search?q=from:{redacted} since:2024-09-23 until:2024-10-03&src=typed_query&f=live'
[twitter][debug] Loading cookies from './twitter.com_cookies.txt'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): x.com:443
[urllib3.connectionpool][debug] https://x.com:443 "GET /i/api/graphql/k5XapwcSikNsEsILW5FvgA/UserByScreenName?variables=%7B%22screen_name%22%3A%22{redacted}%22%2C%22withSafetyModeUserFields%22%3Atrue%7D&features=%7B%22hidden_profile_likes_enabled%22%3Atrue%2C%22hidden_profile_subscriptions_enabled%22%3Atrue%2C%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22highlights_tweets_tab_ui_enabled%22%3Atrue%2C%22responsive_web_twitter_article_notes_tab_enabled%22%3Atrue%2C%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22subscriptions_verification_info_is_identity_verified_enabled%22%3Atrue%2C%22subscriptions_verification_info_verified_since_enabled%22%3Atrue%7D HTTP/11" 200 1098
[twitter][debug] Sleeping 3.00 seconds (request)
[urllib3.connectionpool][debug] https://x.com:443 "GET /i/api/graphql/fZK7JipRHWtiZsTodhsTfQ/SearchTimeline?variables=%7B%22rawQuery%22%3A%22from%3A{redacted}+since%3A2024-09-23+until%3A2024-10-03%22%2C%22count%22%3A100%2C%22querySource%22%3A%22%22%2C%22product%22%3A%22Latest%22%7D&features=%7B%22responsive_web_graphql_exclude_directive_enabled%22%3Atrue%2C%22verified_phone_label_enabled%22%3Afalse%2C%22creator_subscriptions_tweet_preview_api_enabled%22%3Atrue%2C%22responsive_web_graphql_timeline_navigation_enabled%22%3Atrue%2C%22responsive_web_graphql_skip_user_profile_image_extensions_enabled%22%3Afalse%2C%22c9s_tweet_anatomy_moderator_badge_enabled%22%3Atrue%2C%22tweetypie_unmention_optimization_enabled%22%3Atrue%2C%22responsive_web_edit_tweet_api_enabled%22%3Atrue%2C%22graphql_is_translatable_rweb_tweet_is_translatable_enabled%22%3Atrue%2C%22view_counts_everywhere_api_enabled%22%3Atrue%2C%22longform_notetweets_consumption_enabled%22%3Atrue%2C%22responsive_web_twitter_article_tweet_consumption_enabled%22%3Atrue%2C%22tweet_awards_web_tipping_enabled%22%3Afalse%2C%22freedom_of_speech_not_reach_fetch_enabled%22%3Atrue%2C%22standardized_nudges_misinfo%22%3Atrue%2C%22tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled%22%3Atrue%2C%22rweb_video_timestamps_enabled%22%3Atrue%2C%22longform_notetweets_rich_text_read_enabled%22%3Atrue%2C%22longform_notetweets_inline_media_enabled%22%3Atrue%2C%22responsive_web_media_download_video_enabled%22%3Atrue%2C%22responsive_web_enhance_cards_enabled%22%3Afalse%7D HTTP/11" 200 15076
[twitter][debug] Active postprocessor modules: [MetadataPP]
[twitter][debug] Sleeping 1.00 seconds (download)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): pbs.twimg.com:443
[urllib3.connectionpool][debug] https://pbs.twimg.com:443 "GET /media/********?format=jpg&name=orig HTTP/11" 404 345
[downloader.http][warning] '404 Not Found' for 'https://pbs.twimg.com/media/********?format=jpg&name=orig'
[download][info] Trying fallback URL #1
[urllib3.connectionpool][debug] Resetting dropped connection: pbs.twimg.com
[urllib3.connectionpool][debug] https://pbs.twimg.com:443 "GET /media/********?format=jpg&name=4096x4096 HTTP/11" 404 345
[downloader.http][warning] '404 Not Found' for 'https://pbs.twimg.com/media/********?format=jpg&name=4096x4096'
[download][info] Trying fallback URL #2
[urllib3.connectionpool][debug] Resetting dropped connection: pbs.twimg.com
[urllib3.connectionpool][debug] https://pbs.twimg.com:443 "GET /media/********?format=jpg&name=large HTTP/11" 404 345
[downloader.http][warning] '404 Not Found' for 'https://pbs.twimg.com/media/********?format=jpg&name=large'
[download][info] Trying fallback URL #3
[urllib3.connectionpool][debug] Resetting dropped connection: pbs.twimg.com
[urllib3.connectionpool][debug] https://pbs.twimg.com:443 "GET /media/********?format=jpg&name=medium HTTP/11" 404 345
[downloader.http][warning] '404 Not Found' for 'https://pbs.twimg.com/media/********?format=jpg&name=medium'
[download][info] Trying fallback URL #4
[urllib3.connectionpool][debug] Resetting dropped connection: pbs.twimg.com
[urllib3.connectionpool][debug] https://pbs.twimg.com:443 "GET /media/********?format=jpg&name=small HTTP/11" 404 345
[downloader.http][warning] '404 Not Found' for 'https://pbs.twimg.com/media/********?format=jpg&name=small'
[download][error] Failed to download ...
There is no problem when viewing the link through browser.
Even JDownloader (with login cookie) now shows the download status "Server error 404" or "Original image is unavailable".
Not working for me either. Using cookies from firefox, have been since forever.
[twitter][info] Logging in as xxxxx
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.x.com:443
[urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json?flow_name=login HTTP/1.1" 200 244
[twitter][debug] Sleeping 1.82 seconds (login (LoginJsInstrumentationSubtask))
[urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json HTTP/1.1" 200 971
[twitter][debug] Sleeping 2.85 seconds (login (LoginEnterUserIdentifierSSO))
[urllib3.connectionpool][debug] https://api.x.com:443 "POST /1.1/onboarding/task.json HTTP/1.1" 200 620
[twitter][error] AuthenticationError: Login rejected as suspicious