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

ERROR: [twitter] 98764321: Unrecognized subtask ID "DenyLoginSubtask" #7579

Closed
9 tasks done
Shohreh opened this issue Jul 13, 2023 · 4 comments · Fixed by #7621
Closed
9 tasks done

ERROR: [twitter] 98764321: Unrecognized subtask ID "DenyLoginSubtask" #7579

Shohreh opened this issue Jul 13, 2023 · 4 comments · Fixed by #7621
Assignees
Labels
account-needed Account details are needed to test/fix this incomplete Further information is needed site-bug Issue with a specific website

Comments

@Shohreh
Copy link

Shohreh commented Jul 13, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Please make sure the question is worded well enough to be understood

Hello,

It worked until today, but I'm now getting this error when trying to download a video from Twitter:

c:\youtube-dlp.exe --username joe --password blah --abort-on-error --twofactor 123456 -o test.mp4 https://twitter.com/blah/status/98764321
ERROR: [twitter] 98764321: Unrecognized subtask ID "DenyLoginSubtask"

Downloading still works OK when using a web-based app, so it looks specific to YDLP. Am I the only one having this issue?

Thank you.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (win_x86_exe)
[debug] Python 3.7.9 (CPython x86 32bit) - Windows-7-6.1.7601-SP1 (OpenSSL 1.1.1g  21 Apr 2020)
[debug] exe versions: ffmpeg N-109165-g9f5a9a7499-20221122 (setts), ffprobe N-109165-g9f5a9a7499-20221122
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
Current Build Hash: 7ce646283f2c437e2dc28e3008c892702824b6174f381d82b8e68c5bdb6be3b2
yt-dlp is up to date (stable@2023.07.06)
@Shohreh Shohreh added the question Question label Jul 13, 2023
@bashonly
Copy link
Member

I'm now getting this error when trying to download a video from Twitter

Can you please show a full verbose log of the yt-dlp login failing?
This looks like something that was missed in the extractor's login implementation

Downloading still works OK when using a web-based app, so it looks specific to YDLP. Am I the only one having this issue?

You no longer need to be logged in with yt-dlp in order to download twitter videos. Or if you are downloading age-restricted content, you can pass cookies instead of -u/-p

@bashonly bashonly added incomplete Further information is needed site-bug Issue with a specific website and removed question Question labels Jul 13, 2023
@Shohreh
Copy link
Author

Shohreh commented Jul 13, 2023

Thanks for the info. It's working again. Looks like a site-bug indeed.

@gamer191
Copy link
Collaborator

gamer191 commented Jul 13, 2023

This came up when I googled "DenyLoginSubtask". It's MIT licensed though, so I doubt it can be used :(
https://github.com/kenchan0130/unofficial-twitter-api-client-go/blob/main/twitter/session.go#L65

@bashonly bashonly added the account-needed Account details are needed to test/fix this label Jul 13, 2023
@bashonly
Copy link
Member

Apparently DenyLoginSubtask is sent from twitter upon a "suspicious login" attempt, but I'm not sure what exactly raises twitter's suspicion.

Closing this again since I can't repro it and I don't have enough info to patch it properly

If anyone else experiences this error, please run your command again with -v --write-pages and post the verbose log here. The dumped pages should not be posted publicly, but could be sent privately to the dev working to solve this

@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2023
bashonly added a commit that referenced this issue Jul 29, 2023
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
account-needed Account details are needed to test/fix this incomplete Further information is needed site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants