Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBC with valid credentials fails to download XML http error 402 #17609

Closed
fregoMT opened this issue Sep 19, 2018 · 0 comments
Closed

CBC with valid credentials fails to download XML http error 402 #17609

fregoMT opened this issue Sep 19, 2018 · 0 comments
Labels

Comments

@fregoMT
Copy link

@fregoMT fregoMT commented Sep 19, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.09.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [ X] I've verified and I assure that I'm running youtube-dl 2018.09.18

Before submitting an issue make sure you have:

  • [ X] At least skimmed through the README, most notably the FAQ and BUGS sections
  • [ X] Searched the bugtracker for similar issues including closed ones
  • [ X] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • [X ] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

$ youtube-dl -u "q973391@mvrht.net" --proxy "https://216.221.94.189:34938" https://watch.cbc.ca/media/baroness-von-sketch-show/season-1/episode-1/38e815a-009fd3b3abb --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'--proxy', u'https://216.221.94.189:34938', u'https://watch.cbc.ca/media/baroness-von-sketch-show/season-1/episode-1/38e815a-009fd3b3abb', u'--verbose']
Type account password and press [Return]:
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.09.18
[debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-34-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: avconv 3.4.4-0ubuntu0.18.04.1, avprobe 3.4.4-0ubuntu0.18.04.1, ffmpeg 3.4.4-0ubuntu0.18.04.1, ffprobe 3.4.4-0ubuntu0.18.04.1, rtmpdump 2.4
[debug] Proxy map: {u'http': u'https://216.221.94.189:34938', u'https': u'https://216.221.94.189:34938'}
[debug] Using fake IP 99.225.244.32 (CA) as X-Forwarded-For.
[cbc.ca:watch] 38e815a-009fd3b3abb: Downloading XML
[cbc.ca:watch] 38e815a-009fd3b3abb: Downloading XML
[download] Downloading playlist: I Can't Believe this Used to Take Days
[cbc.ca:watch] playlist I Can't Believe this Used to Take Days: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[debug] Using fake IP 99.235.222.76 (CA) as X-Forwarded-For.
[cbc.cavideo] cfc39bd2-74c8-4244-b2ff-0565eda541f8: Downloading XML
ERROR: Unable to download XML: HTTP Error 402: Payment Required (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 604, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, 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 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)

...

---

### Description of your *issue*, suggested solution and other information

The watch.cbc.ca website does a region verification hence the use of the proxy in the command line above.  Using that proxy and the below credentials I am able to view that video and others just fine.   The login (available on bugmenot.com) is:
username:  q973391@mvrht.net
password:  q973391@mvrht.net
When logged in as the user: q973391@mvrht.net on a web browser I can view videos fine using a http/https proxy.

You can register for free on the cbc site and I do have another login that I've also used successfully in a browser to view the video in the above attempt but also does not work from the CLI using youtube-dl.  

Oddly, this video on the cbc site works fine even without using the proxy or user login:

$youtube-dl https://watch.cbc.ca/media/baroness-von-sketch-show/season-3/episode-1/38e815a-00f310e1384

Thanks for all the great work!  I find youtube-dl to be an indispensable tool!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.