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

Unable to download JSON metadata: HTTP Error 401: Unauthorized (caused by HTTPError()) on Udemy #4308

Closed
muhasturk opened this issue Nov 25, 2014 · 2 comments
Assignees

Comments

@muhasturk
Copy link

@muhasturk muhasturk commented Nov 25, 2014

➜  ~  youtube-dl https://www.udemy.com/complete-ios-developer-course/\#/lecture/1459618 -u blabla@yandex.com -p there_is_a_password -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.udemy.com/complete-ios-developer-course/#/lecture/1459618', '-u', u'PRIVATE', '-p', u'PRIVATE', '-v']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2014.11.25.1
[debug] Python version 2.7.8 - Darwin-14.0.0-x86_64-i386-64bit
[debug] exe versions: avconv 11, avprobe 11
[debug] Proxy map: {}
[udemy] Downloading login popup
[udemy] Logging in as blabla@yandex.com
[udemy] 1459618: Downloading lecture JSON
ERROR: Unable to download JSON metadata: HTTP Error 401: Unauthorized (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 273, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1321, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
➜  ~  youtube-dl --version
2014.11.25.1

Releated:
#2008
#3998
#4124

@dstftw dstftw self-assigned this Nov 26, 2014
@dstftw dstftw closed this in e293711 Nov 26, 2014
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 26, 2014

Udemy will work again in the next version of youtube-dl. Thanks for the report.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 26, 2014

I believe this issue to be been fixed in youtube-dl 2014.11.26.4 and newer. Refer to our FAQ if you encounter problems updating.

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.