YouTube: Unable to submit TFA code: HTTP Error 500: Internal Server Error #14233

Closed
opened 2026-02-21 07:38:00 -05:00 by deekerman · 1 comment
Owner

Originally created by @zefie on GitHub (Aug 8, 2018).

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.08.04. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.08.04

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--username=PRIVATE', '--password', 'PRIVATE', '--restrict-filenames', '--write-info-json', '--write-annotations', '--write-thumbnail', '-f', 'bestvideo+bestaudio', '--merge-output-format', 'mkv', '-o', '%(uploader)s/%(upload_date)s_-_%(title)s_[%(id)s][f%(format_id)s].%(ext)s', '0-fyoq4454U', '-2', '980084', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.07.29
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-85750-ga75ef15, ffprobe N-85750-ga75ef15
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
[youtube] Logging in
[youtube] Submitting TFA code
WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error
[youtube] 0-fyoq4454U: Downloading webpage
[youtube] 8tEsxbCl21E: Downloading webpage
[youtube] 8tEsxbCl21E: Downloading video info webpage
[youtube] {22} signature length 43.42, html5 player vfl4xh-NY
[youtube] {43} signature length 43.42, html5 player vfl4xh-NY
[youtube] {18} signature length 43.42, html5 player vfl4xh-NY
[youtube] {36} signature length 43.42, html5 player vfl4xh-NY
[youtube] {17} signature length 43.42, html5 player vfl4xh-NY
[youtube] {137} signature length 43.42, html5 player vfl4xh-NY
[youtube] {248} signature length 43.42, html5 player vfl4xh-NY
[youtube] {136} signature length 43.42, html5 player vfl4xh-NY
[youtube] {247} signature length 43.42, html5 player vfl4xh-NY
[youtube] {135} signature length 43.42, html5 player vfl4xh-NY
[youtube] {244} signature length 43.42, html5 player vfl4xh-NY
[youtube] {134} signature length 43.42, html5 player vfl4xh-NY
[youtube] {243} signature length 43.42, html5 player vfl4xh-NY
[youtube] {133} signature length 43.42, html5 player vfl4xh-NY
[youtube] {242} signature length 43.42, html5 player vfl4xh-NY
[youtube] {160} signature length 43.42, html5 player vfl4xh-NY
[youtube] {278} signature length 43.42, html5 player vfl4xh-NY
[youtube] {140} signature length 43.42, html5 player vfl4xh-NY
[youtube] {171} signature length 43.42, html5 player vfl4xh-NY
[youtube] {249} signature length 43.42, html5 player vfl4xh-NY
[youtube] {250} signature length 43.42, html5 player vfl4xh-NY
[youtube] {251} signature length 43.42, html5 player vfl4xh-NY
[youtube] 8tEsxbCl21E: Searching for annotations.
[info] Writing video annotations to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].annotations.xml
[info] Writing video description metadata as JSON to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].info.json
[youtube] 8tEsxbCl21E: Downloading thumbnail ...
[youtube] 8tEsxbCl21E: Writing thumbnail to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].jpg
[debug] Invoking downloader on 'https://r2---sn-4pgnuapbiu-5ace.googlevideo.com/videoplayback?mv=m&expire=1533805962&dur=59.092&initcwndbps=1351250&ei=KrFrW92hEIXx8wS16rSwDA&ip=216.59.163.178&requiressl=yes&mt=1533784249&gir=yes&ms=au%2Crdu&mm=31%2C29&mn=sn-4pgnuapbiu-5ace%2Csn-ab5sznle&mime=video%2Fmp4&id=o-AIshL91_P9S6QQ74HI6corUcfWaEGLPyoI9RdAKMqwSA&pl=19&gcr=us&ipbits=0&key=yt6&lmt=1507171918917734&keepalive=yes&itag=137&fvip=2&c=WEB&pcm2=yes&clen=20730454&source=youtube&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=A1512F04DD0CD3137C812E5F3DE54CD63D04B1B6.565FE518E081186B77A8DD461F979B6FA446C51D&ratebypass=yes'
[download] Destination: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137].f137.mp4
[download] 100% of 19.77MiB in 00:01
[debug] Invoking downloader on 'https://r2---sn-4pgnuapbiu-5ace.googlevideo.com/videoplayback?mv=m&expire=1533805962&dur=59.101&initcwndbps=1351250&ei=KrFrW92hEIXx8wS16rSwDA&ip=216.59.163.178&requiressl=yes&mt=1533784249&gir=yes&ms=au%2Crdu&mm=31%2C29&mn=sn-4pgnuapbiu-5ace%2Csn-ab5sznle&mime=audio%2Fwebm&id=o-AIshL91_P9S6QQ74HI6corUcfWaEGLPyoI9RdAKMqwSA&pl=19&gcr=us&ipbits=0&key=yt6&lmt=1454038209716099&keepalive=yes&itag=251&fvip=2&c=WEB&pcm2=yes&clen=974556&source=youtube&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=6E87796053060DD5C4B72C2328895EDBA626B73D.33BE8B84A582AB5875BACE9B88F92E58612DD738&ratebypass=yes'
[download] Destination: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f251].f251.webm
[download] 100% of 951.71KiB in 00:00
[ffmpeg] Merging formats into "PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].mkv"
[debug] ffmpeg command line: ffmpeg -y -i "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137].f137.mp4" -i "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f251].f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].temp.mkv"

ERROR: Interrupted by user

(I canceled the download when it started to download the trailer rather than actual video (I have premium))

Description of your issue, suggested solution and other information

Cannot authenticate to YouTube with 2FA enabled.

WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error

Also tried old app-password method (would be preferred for easily retractable passwords in batch files), but since the code is updated to support 2FA, app passwords no longer work. Therefore, it is currently impossible to log into YouTube at the moment.

Originally created by @zefie on GitHub (Aug 8, 2018). ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what your issue will actually look like --- ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.08.04*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected. - [x] I've **verified** and **I assure** that I'm running youtube-dl **2018.08.04** ### Before submitting an *issue* make sure you have: - [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections - [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones - [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser ### What is the purpose of your *issue*? - [x] Bug report (encountered problems with youtube-dl) - [ ] Site support request (request for adding support for a new site) - [ ] Feature request (request for a new functionality) - [ ] Question - [ ] Other --- ### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows: ``` [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--username=PRIVATE', '--password', 'PRIVATE', '--restrict-filenames', '--write-info-json', '--write-annotations', '--write-thumbnail', '-f', 'bestvideo+bestaudio', '--merge-output-format', 'mkv', '-o', '%(uploader)s/%(upload_date)s_-_%(title)s_[%(id)s][f%(format_id)s].%(ext)s', '0-fyoq4454U', '-2', '980084', '--verbose'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2018.07.29 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.14393 [debug] exe versions: ffmpeg N-85750-ga75ef15, ffprobe N-85750-ga75ef15 [debug] Proxy map: {} [youtube] Downloading login page [youtube] Looking up account info [youtube] Logging in [youtube] Submitting TFA code WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error [youtube] 0-fyoq4454U: Downloading webpage [youtube] 8tEsxbCl21E: Downloading webpage [youtube] 8tEsxbCl21E: Downloading video info webpage [youtube] {22} signature length 43.42, html5 player vfl4xh-NY [youtube] {43} signature length 43.42, html5 player vfl4xh-NY [youtube] {18} signature length 43.42, html5 player vfl4xh-NY [youtube] {36} signature length 43.42, html5 player vfl4xh-NY [youtube] {17} signature length 43.42, html5 player vfl4xh-NY [youtube] {137} signature length 43.42, html5 player vfl4xh-NY [youtube] {248} signature length 43.42, html5 player vfl4xh-NY [youtube] {136} signature length 43.42, html5 player vfl4xh-NY [youtube] {247} signature length 43.42, html5 player vfl4xh-NY [youtube] {135} signature length 43.42, html5 player vfl4xh-NY [youtube] {244} signature length 43.42, html5 player vfl4xh-NY [youtube] {134} signature length 43.42, html5 player vfl4xh-NY [youtube] {243} signature length 43.42, html5 player vfl4xh-NY [youtube] {133} signature length 43.42, html5 player vfl4xh-NY [youtube] {242} signature length 43.42, html5 player vfl4xh-NY [youtube] {160} signature length 43.42, html5 player vfl4xh-NY [youtube] {278} signature length 43.42, html5 player vfl4xh-NY [youtube] {140} signature length 43.42, html5 player vfl4xh-NY [youtube] {171} signature length 43.42, html5 player vfl4xh-NY [youtube] {249} signature length 43.42, html5 player vfl4xh-NY [youtube] {250} signature length 43.42, html5 player vfl4xh-NY [youtube] {251} signature length 43.42, html5 player vfl4xh-NY [youtube] 8tEsxbCl21E: Searching for annotations. [info] Writing video annotations to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].annotations.xml [info] Writing video description metadata as JSON to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].info.json [youtube] 8tEsxbCl21E: Downloading thumbnail ... [youtube] 8tEsxbCl21E: Writing thumbnail to: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].jpg [debug] Invoking downloader on 'https://r2---sn-4pgnuapbiu-5ace.googlevideo.com/videoplayback?mv=m&expire=1533805962&dur=59.092&initcwndbps=1351250&ei=KrFrW92hEIXx8wS16rSwDA&ip=216.59.163.178&requiressl=yes&mt=1533784249&gir=yes&ms=au%2Crdu&mm=31%2C29&mn=sn-4pgnuapbiu-5ace%2Csn-ab5sznle&mime=video%2Fmp4&id=o-AIshL91_P9S6QQ74HI6corUcfWaEGLPyoI9RdAKMqwSA&pl=19&gcr=us&ipbits=0&key=yt6&lmt=1507171918917734&keepalive=yes&itag=137&fvip=2&c=WEB&pcm2=yes&clen=20730454&source=youtube&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=A1512F04DD0CD3137C812E5F3DE54CD63D04B1B6.565FE518E081186B77A8DD461F979B6FA446C51D&ratebypass=yes' [download] Destination: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137].f137.mp4 [download] 100% of 19.77MiB in 00:01 [debug] Invoking downloader on 'https://r2---sn-4pgnuapbiu-5ace.googlevideo.com/videoplayback?mv=m&expire=1533805962&dur=59.101&initcwndbps=1351250&ei=KrFrW92hEIXx8wS16rSwDA&ip=216.59.163.178&requiressl=yes&mt=1533784249&gir=yes&ms=au%2Crdu&mm=31%2C29&mn=sn-4pgnuapbiu-5ace%2Csn-ab5sznle&mime=audio%2Fwebm&id=o-AIshL91_P9S6QQ74HI6corUcfWaEGLPyoI9RdAKMqwSA&pl=19&gcr=us&ipbits=0&key=yt6&lmt=1454038209716099&keepalive=yes&itag=251&fvip=2&c=WEB&pcm2=yes&clen=974556&source=youtube&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&signature=6E87796053060DD5C4B72C2328895EDBA626B73D.33BE8B84A582AB5875BACE9B88F92E58612DD738&ratebypass=yes' [download] Destination: PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f251].f251.webm [download] 100% of 951.71KiB in 00:00 [ffmpeg] Merging formats into "PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].mkv" [debug] ffmpeg command line: ffmpeg -y -i "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137].f137.mp4" -i "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f251].f251.webm" -c copy -map "0:v:0" -map "1:a:0" "file:PewDiePie\20160203_-_SCARE_PEWDIEPIE_-_OFFICIAL_TRAILER_-_YOUTUBE_RED_ORIGINAL_SERIES_[8tEsxbCl21E][f137+251].temp.mkv" ERROR: Interrupted by user ``` (I canceled the download when it started to download the trailer rather than actual video (I have premium)) --- ### Description of your *issue*, suggested solution and other information Cannot authenticate to YouTube with 2FA enabled. **WARNING: Unable to submit TFA code: HTTP Error 500: Internal Server Error** Also tried old app-password method (would be preferred for easily retractable passwords in batch files), but since the code is updated to support 2FA, app passwords no longer work. Therefore, it is currently impossible to log into YouTube at the moment.
Author
Owner

@zefie commented on GitHub (Aug 8, 2018):

closed because youtube-dl did not update as I thought, reopening new issue because issue does still exist

@zefie commented on GitHub (Aug 8, 2018): closed because youtube-dl did not update as I thought, reopening new issue because issue does still exist
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#14233
No description provided.