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.

[Reddit] 429 Too Many Requests

See original GitHub issue

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dl version 2021.06.06
  • 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 issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: ['-o', '%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.reddit.com/r/memes/comments/ppbsg1/skyrim_be_like/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.7 (CPython) - macOS-10.15.7-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Proxy map: {}
[RedditR] ppbsg1: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 429: Too Many Requests (caused by <HTTPError 429: 'Too Many Requests'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/Cellar/youtube-dl/2021.6.6/libexec/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/Cellar/youtube-dl/2021.6.6/libexec/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

  • Reddit now returns 429 Too Many Requests for any video downloading over youtube-dl. Not affected by rate-limiting, as even the first video downloaded over youtube-dl will fail immediately.
  • The video plays completely fine in browser both while logged in and on fresh private tabs, so this is likely related to Reddit detecting youtube-dl.
  • Using various headers (user agent etc.) to imitate a browser has had no effect.
  • Other generic downloading programs like wget return 200 OK.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:16
  • Comments:27 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
haycommented, Sep 27, 2021

@89z your choice of words is inappropriate and hurtful. You’re free to disagree with other, but please consider your language when making comments like that.

8reactions
haycommented, Sep 27, 2021

@89z I’m not sure why you’re talking about a filter here, i’m just following this thread. You’re right that the original message could have been worded a bit better, but i do agree with the gist of the post. I’m sure your tool is useful as well, but “use another tool” is not a constructive solution to this particular issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

429: Too Many Requests...? : r/redditdev
It's because you aren't setting a custom useragent, and Python's default useragent gets very heavily limited. You can try writing one and ...
Read more >
How do I get past the 429 Too Many Requests error ... - Reddit
I've been trying to access a website and it's basically impossible for me unless I use data from my cell phone provider.
Read more >
429 Too Many Requests : r/redditdev
hi, i'm learning golang and wrote a simple script which returns all links from a reddit. ./getUrls funny <--- prints all links from...
Read more >
[PRAW] Getting HTTPError 429: Too many client requests ...
429 means you are being rate limited by reddit, which means you are making too many requests at once. Typically you are only...
Read more >
429 Too Many Requests : r/reactjs - Reddit
I'm trying to request 5 API which cause this error. I try the refresh the page and it sometimes will load and sometimes...
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