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

ustream.tv HTTP Error 401: Unauthorized #4478

Closed
xiaose opened this issue Dec 15, 2014 · 3 comments
Closed

ustream.tv HTTP Error 401: Unauthorized #4478

xiaose opened this issue Dec 15, 2014 · 3 comments

Comments

@xiaose
Copy link

@xiaose xiaose commented Dec 15, 2014

I tried to download video from ustream but cannot & got HTTP Error 401

**$** youtube-dl --verbose http://www.ustream.tv/recorded/55595043
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.ustream.tv/recorded/55595043']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.15
[debug] Python version 2.7.6 - Linux-3.13.0-40-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.16-6, avprobe 9.16-6
[debug] Proxy map: {}
[ustream] 55595043: Downloading webpage
[ustream] 55595043: Extracting information
[debug] Invoking downloader on u'http://tcdn.ustream.tv/video/55595043'
ERROR: unable to download video data: HTTP Error 401: Unauthorized
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1136, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1112, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 297, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 67, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1370, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized

Than I found on page FLV link and still cannot download it:

$ youtube-dl --verbose http://upmv10-ntt-upmv.ustream.tv/0/1/55/55595/55595043/1_6088847_55595043.flv
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://upmv10-ntt-upmv.ustream.tv/0/1/55/55595/55595043/1_6088847_55595043.flv']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.12.15
[debug] Python version 2.7.6 - Linux-3.13.0-40-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.16-6, avprobe 9.16-6
[debug] Proxy map: {}
[generic] 1_6088847_55595043: Requesting header
WARNING: Could not send HEAD request to http://upmv10-ntt-upmv.ustream.tv/0/1/55/55595/55595043/1_6088847_55595043.flv: HTTP Error 403: Forbidden
[generic] 1_6088847_55595043: Downloading webpage
ERROR: Unable to download webpage: 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; 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 276, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1370, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@clampak
Copy link

@clampak clampak commented Dec 15, 2014

Do you need to be logged in? Perhaps try the -u <username> -p <password> options.

@xiaose
Copy link
Author

@xiaose xiaose commented Dec 15, 2014

for http://www.ustream.tv/recorded/55595043 I not need any login\password (and I haven't). In browser I can just go to that URL and there is player (as on youtube) which is played video but with youtube-dl I've got HTTP Error 401: Unauthorized

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Dec 15, 2014

Duplicate of #3998.

@jaimeMF jaimeMF closed this Dec 15, 2014
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
3 participants
You can’t perform that action at this time.