• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Server MusicBot Error youtube-dl HTTP Error 429

Lucas Awade

Member
I try resolve this problem:
MusicBot:
Got an error while trying to load next song: Failed to parse song info: failed to load info: ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Log:
[2019-09-15 02:33:00] [DEBUG] 1 | Having command "mbot".
[2019-09-15 02:33:00] [DEBUG] 1 | Argument: 'yt'
[2019-09-15 02:33:00] [DEBUG] 1 | Argument: '
'
[2019-09-15 02:33:00] [DEBUG] 1 | [Permission] Value test result for test type 1.
[2019-09-15 02:33:00] [DEBUG] 1 | [Permission] Permission: i_client_music_play_power Required value: -2 Gained value: 75 Force required: 1 Channel: Rádio Result: 1
[2019-09-15 02:33:00] [DEBUG] [Music] [YT-DL] Executing video query command "youtube-dl -v -s --print-json --no-playlist --flat-playlist "
""
[2019-09-15 02:33:03] [ERROR] 1 | [PlayList] Failed to load song info. Error: failed to load info: ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.. Removing song
I try youtube-dl -U and not working!
If anyone knows the solution!
 

otalportista

Fanatic member
When you make this command on terminal what you get?
Code:
youtube-dl https://www.youtube.com/watch?v=I_QpDE-Uco0
 

Lucas Awade

Member
Execute command: youtube-dl -v --no-check-certificate -s --print-json --get-thumbnail "
"
[debug] System config: [u'--force-ipv4']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--no-check-certificate', u'-s', u'--print-json', u'--get-thumbnail', u'
']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.12.1
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-52-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 4.2-static
[debug] Proxy map: {}
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2229, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 467, in error
result = self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 654, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
 

otalportista

Fanatic member
try this commands
Code:
apt update
apt upgrade
apt install python*
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl.sig -O youtube-dl.sig
gpg --verify youtube-dl.sig /usr/local/bin/youtube-dl
rm youtube-dl.sig
After this codes execute that and put output text in comments.
Code:
youtube-dl https://www.youtube.com/watch?v=I_QpDE-Uco0
 

Lucas Awade

Member
youtube-dl
[youtube] I_QpDE-Uco0: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 

Cranky

New member
Not my solution, it took me a while to understand what he meant (reading is an art). It worked for me.
(see: https://askubuntu.com/questions/1220266/youtube-dl-do-not-working-http-error-429-too-many-requests-how-can-i-solve-this)
You have to use the option --cookies in combination with a current/correct cookie file.
Here the steps I followed
1. if you use Firefox, install addon cookies.txt, enable the addon
2. clear your browser cache, clear you browser cookies (privacy reasons)
3. go to google.com, and log in with your google account
4. go to youtube.com
5. click on the cookies.txt addon, and export the cookies, save it as cookies.txt (in the same directory from where you are going to run youtube-dl)
6. this worked for me ... youtube-dl --cookies cookies.txt https://www.youtube.com/watch?v=....
Hope it helps.
 

xDyego

Well-known member
You were banned by youtube for running too many youtube links, youtube will ban your IP for a few hours or a few days.
 

yamano

TeaSpeak Team
Staff member
TeaTeam
Not my solution, it took me a while to understand what he meant (reading is an art). It worked for me.
(see: https://askubuntu.com/questions/1220266/youtube-dl-do-not-working-http-error-429-too-many-requests-how-can-i-solve-this)
You have to use the option --cookies in combination with a current/correct cookie file.
Here the steps I followed
1. if you use Firefox, install addon cookies.txt, enable the addon
2. clear your browser cache, clear you browser cookies (privacy reasons)
3. go to google.com, and log in with your google account
4. go to youtube.com
5. click on the cookies.txt addon, and export the cookies, save it as cookies.txt (in the same directory from where you are going to run youtube-dl)
6. this worked for me ... youtube-dl --cookies cookies.txt https://www.youtube.com/watch?v=....
Hope it helps.
This is not a 100% solution but it can help for some time.
Attention: cookies file needs to be constantly updated.
There are another possible solution (not 100%), using a proxy server: