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

Udemy - ERROR: Unable to download JSON metadata: HTTP Error 403: FORBIDDEN #10881

Closed
IAmIlliest opened this issue Oct 9, 2016 · 2 comments
Closed

Comments

@IAmIlliest
Copy link

@IAmIlliest IAmIlliest commented Oct 9, 2016

  • [x ] I've verified and I assure that I'm running youtube-dl 2016.10.07
  • Bug report (encountered problems with youtube-dl)

$ youtube-dl -v -u 'user' -p 'password' -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.udemy.com/draft/210674/learn/v4/overview

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-o', u'~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s', u'https://www.udemy.com/draft/210674/learn/v4/overview']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.10.07
[debug] Python version 2.7.5 - Linux-3.10.0-327.10.1.el7.x86_64-x86_64-with-centos-7.2.1511-Core
[debug] exe versions: ffmpeg N-79151-gff982e0, ffprobe N-79151-gff982e0
[debug] Proxy map: {}
[udemy:course] Downloading login popup
[udemy:course] Logging in as user
[udemy:course] draft: Downloading webpage
[udemy:course] 210674: Downloading course curriculum
[download] Downloading playlist: UNIX and Linux Operating System - Beginner & Advanced
[udemy:course] playlist UNIX and Linux Operating System - Beginner & Advanced: Collected 180 video ids (downloading 180 of them)
[download] Downloading video 1 of 180
[udemy] Downloading login popup
[udemy] 1248832: Downloading webpage
[udemy] 1248832: Downloading lecture JSON
[udemy] 1248832: Downloading lecture JSON
ERROR: Unable to download JSON metadata: 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 "/home/user/myapps/youtube-dl/bin/youtube-dl/youtube_dl/extractor/common.py", line 403, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/home/user/myapps/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib64/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/usr/lib64/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
...
<end of log>

I'm not sure what the issue is, but it appears to be receiving a 403 and having JSON errors. After the above, it spits me back on to the command line. The operating system is CentOS 7.

@horusra
Copy link

@horusra horusra commented May 13, 2017

I have this same issue. if it can be fixed by providing account, I will allow access to my account to one of the developers

@horusra horusra mentioned this issue May 13, 2017
4 of 8 tasks complete
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 13, 2017

Most likely your cookie file is invalid.

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
5 participants
@dstftw @yan12125 @horusra @IAmIlliest and others
You can’t perform that action at this time.