ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.31k stars 10.03k forks source link

Crunchyroll HTTP 403 Error on Linux (works fine on Windows) #16288

Closed CrunchyyGuyy closed 6 years ago

CrunchyyGuyy commented 6 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.04.25. 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?


[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'--cookies', u'cookies.txt', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'http://www.crunchyroll.com/darling-in-the-franxx/episode-15-jian-769599', u'--write-sub', u'--sub-format', u'ass', u'--sub-lang', u'frFR']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.25
[debug] Python version 2.7.9 (CPython) - Linux-4.13.13-5-pve-x86_64-with-debian-8.10
[debug] exe versions: ffmpeg 3.2.10-1, ffprobe 3.2.10-1
[debug] Proxy map: {}
[Crunchyroll] Logging in
ERROR: Wrong login info: HTTP Error 403: Forbidden (caused by HTTPError()); 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/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 519, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 2203, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description of your issue, suggested solution and other information

Hi, here's what happens when I run this command on my VPS (it works fine on Windows). Removing connection information changes the error to ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError())

RGFRv2 commented 6 years ago

Same problem as me. It works on Windows with cookies but not on Linux

CrunchyyGuyy commented 6 years ago

@dstftw Can you please answer something?

CrunchyyGuyy commented 6 years ago

Update: it happens when your server's IP is CF banned, try to use a proxy.