Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Login to youtube fails #11270
Login to youtube fails #11270
Comments
|
That does not fix my issue, I still get, as before:
since my issue here is happening during login, before the download of the watchlist even takes place... |
|
Post the output with |
|
Here you go: http://pastebin.com/Dm3KH27e |
|
After some more testing, I found that after many attempts, it sometimes works!
which is probably google blocking the plaintext login (waiting for some time + retry makes things work again). So right now I believe the error 400 may indeed be a "local" issue: A problem with the youtube-server for which my provider hands out the IP via DNS. I'll watch the problem a bit more in the next days and see whether it also vanishes if I am in different networks (with different providers and thus DNS) or I can reproduce also there. |
Using 8.8.8.8 as DNS instead of the one my ISP, indeed everything works fine. Maybe you can try reproducing with that specific IP? Or, if not, just close it - it seems not many people will be affected by that... |
|
Has anyone made any progress on this or run into similar issues? I've written a small program analyze a user's Youtube history, and am using youtube-dl to grab the meta-data. Reproducibility is a problem for me as well, since logging on works fine for be, but seems to fail fairly consistently (but not always) for others. |
|
I'm having this issue currently, and setting
Here is the pastebin for |
|
Okay, after fiddling with it for a little bit i got it to work. Setting nameserver to 8.8.8.8 in resolv.conf didn't work at first because NetworkManager was overwriting the file at boot-time. After write-protecting it, i got it to work consistently. @omeringen @Quaraxkad try this solution, or it's equivalent on Windows if you are a Win user, and with luck it will fix your problems as well. |
|
I don't know this information for sure, but I think Google Login now fully requires JavaScript, kinda of. I was able to login yesterday, without doing this. But for some reason, today Google started giving me a 400 Bad Request. |
|
I've been having this 'Bad Request' issue for a week or more now. It is consistent across three different internet services and does not care about a static DNS server(s) or ISP assigned. The downloader works great when directed at a batch file, playlist, or individual video, only when attempting to login to an account the problem appears.
If some of the options are confusing I can explain their combination, they function as intended without a login attempt. Also I've been trying to troubleshoot so they're likely weird. I can also provide a '--dump-pages' and '--print-traffic' at request. |
|
I feel this could be related to having a brand name, and a personal account with one email, at least maybe? No idea, but anyways I'm having this issue too on |
Me too. |
Oh I didn't even think of that. I haven't tested it since my last comment a while back. I do have a split account. I can't quite try on another account as I was trying to use it with videos only available via Red. |
|
I as well am having this issue with both
|
|
I neglected to mention I tried on two separate accounts, one of which is devoted to the downloader and the other is a spare. Neither have a brand name. |
I just tried that. I made a copy to another machine and I get the same error. I also tried two different accounts and I get the same error. I have my personal Google account and one just for doing downloads and neither are brands. I updated ffmpeg since it does get loaded and that didn't help. I disabled my PiHole, that didn't help. I tested moving from username/password to cookies and that works. So something is definitely wrong in the user/pass authentication process. |
Just repeated this on my system and this is correct. With cookies passed everything works as expected. This is an OK workaround on a singular system/network, but would be tiresome if you carry your downloading system around with you. |
|
Same issue fixed with cookies.txt |
|
@Inginn what addon did you use? |
|
@Poilaucul they probably used this one or at least that's what I used. Anyways, using the cookies fixed the issue, recaptcha issue maybe? Not really sure... |
|
The workaround using cookies.txt worked for me as well. I used cookies.txt for firefox |
|
Using https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg worked for me as well, the error
is still present but streamed videos are showing up marked as watched in my youtube history. |
Did you leave the username/password options in your command line? If you did that will cause it, you only use cookies by themselves. |
|
This workaround with cookies worked for me either, but is it possible to implement native authorization with login and password? |
|
with correct username and password with cookies file latest version 2019.07.02. clearly an issue with youtube's new login page changes. dealt with the same issue using rclone authentication. why has this not been addressed? |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2016.11.22. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
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:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
Login to youtube fails. Needless to say, password and account name in
.netrc' are fine, and manual login to the page works. The same output is obtained if using-u myaccountname@gmail.comand entering password manually, so also the.netrc' file is likely not broken. I do not have 2-factor auth activated for my account.Is use of oauth (like e.g.
offlineimapsupports) available?