question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[YT] --username results in WARNING: Unable to look up account info: HTTP Error 400: Bad Request

See original GitHub issue

Checklist

  • I’m reporting a broken site support issue
  • I’ve verified that I’m running youtube-dlc version 2020.10.31
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--username', 'PRIVATE', 'https://www.youtube.com/watch?v=g3iC3SgsZO0']
Type account password and press [Return]:
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dlc version 2020.11.11-2
[debug] Git HEAD: 228385340
[debug] Python version 3.8.6 (CPython) - Linux-5.7.0-3-amd64-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] Downloading login page
[youtube] Looking up account info
WARNING: Unable to look up account info: HTTP Error 400: Bad Request
[youtube] g3iC3SgsZO0: Downloading webpage
[youtube] {18} signature length 105, html5 player 8b85eac2
[youtube] {134} signature length 101, html5 player 8b85eac2
[youtube] {243} signature length 105, html5 player 8b85eac2
[youtube] {133} signature length 101, html5 player 8b85eac2
[youtube] {242} signature length 105, html5 player 8b85eac2
[youtube] {160} signature length 105, html5 player 8b85eac2
[youtube] {278} signature length 105, html5 player 8b85eac2
[youtube] {140} signature length 105, html5 player 8b85eac2
[youtube] {249} signature length 105, html5 player 8b85eac2
[youtube] {250} signature length 105, html5 player 8b85eac2
[youtube] {251} signature length 105, html5 player 8b85eac2
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Rainbow Bunchie song-g3iC3SgsZO0.mkv has already been downloaded and merged

Description

For a long time now logging into YouTube with --username has been broken it would be nice to see this fixed. On the standard youtube-dl this was an ignored issue that no one seemed to care about.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jan 13, 2021

thanks works.

1reaction
pukkandancommented, Jan 13, 2021

Use the --cookies option, for example --cookies /path/to/cookies/file.txt.

In order to extract cookies from browser use any conforming browser extension for exporting cookies. For example, Get cookies.txt (for Chrome) or cookies.txt (for Firefox).

https://github.com/ytdl-org/youtube-dl#how-do-i-pass-cookies-to-youtube-dl

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to look up account info: HTTP Error 400: Bad Request ...
Question. I'm trying to download a private video from Youtube that I have access to. I can't. command: youtube-dl -- ...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >
Why is youtube-dl blocking me from downloading YouTube ...
Downloading login page [youtube] Looking up account info WARNING: Unable to look up account info: HTTP Error 400: Bad Request (Followed by the ......
Read more >
Youtube-dl Login Workaround? : r/commandline - Reddit
[youtube:history] Looking up account info ... WARNING: Unable to log in: HTTP Error 400: Bad Request ... youtube-dl -u <username> ...
Read more >
youtube-dl not downloading any "age restricted" video
and for username I tried the email address i'd log in to youtube with, and I tried the username. user@user:~/user# ./youtube-dl -u _____...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found