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

HTTP Error 403: FORBIDDEN (caused by HTTPError()) downloading certain UDEMY video #12738

Closed
dbodily2000 opened this issue Apr 14, 2017 · 3 comments
Closed

Comments

@dbodily2000
Copy link

@dbodily2000 dbodily2000 commented Apr 14, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

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

  • I've verified and I assure that I'm running youtube-dl 2017.04.14

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • 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


PS E:\UDEMY Courses\ITIL Foundation COMPLETE ITIL Foundation Exam Training> .\youtube-dl.exe -v -u email@yahoo.com -p ********* https://www.udemy.com/draft/470634/learn/v4/overvie
w
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.udemy.com/draft/470634/learn/v4/overview']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.04.14
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] Downloading login popup
[udemy:course] Logging in as email@yahoo.com
[udemy:course] draft: Downloading webpage
[udemy:course] 470634: Downloading course curriculum
[download] Downloading playlist: 470634
[udemy:course] playlist 470634: Collected 121 video ids (downloading 121 of them)
[download] Downloading video 1 of 121
[udemy] Downloading login popup
[udemy] 2771478: Downloading webpage
[udemy] 2771478: Downloading lecture JSON
[udemy] 2771478: 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 versio
n; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpykl6x8ju\build\youtube_dl\extractor\common.py", line 498, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpykl6x8ju\build\youtube_dl\YoutubeDL.py", line 2100, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

PS E:\UDEMY Courses\ITIL Foundation COMPLETE ITIL Foundation Exam Training>
...
<end of log>


Trying to download my paid Udemy content, all videos have downloaded correctly except the following URL:https://www.udemy.com/draft/470634/learn/v4/overview I have tried comming back on a different day to see if the course was locked or updated etc. No success. Attached dump if needed, again all other videos ~50 downloaded with no incident using same creds, powershell as admin and same parent directory.
Udemy_HTTP_Error_403_dump.txt

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 14, 2017

For any further investigations you have to provide account credentials.

@Deviad
Copy link

@Deviad Deviad commented Apr 15, 2017

Same here, but having:

"ERROR: Unable to download JSON metadata: HTTP Error 406: NOT ACCEPTABLE (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."

This happens with:
https://www.udemy.com/oop-php-object-oriented-programing-with-project-1-course/learn/v4/content
and
https://www.udemy.com/become-a-full-stack-developer-with-spring-aws-and-stripe/learn/v4/

It happens also with udemy-dl.
https://github.com/nishad/udemy-dl/issues/207

@dbodily2000
Copy link
Author

@dbodily2000 dbodily2000 commented Apr 23, 2017

So after looking further into my own issue, I found that the Udemy error was caused because there was a "draft" (the course was being updated) I have found that by deleting the "draft" portion of the URL, the download worked. I.e:

https://www.udemy.com/draft/470634/learn/v4/overview (does not work)

https://www.udemy.com/470634/learn/v4/overview (does allow download without errors of all content)
this may be useful for other users who are having issues downloading wile the course is in a "draft" state.

My issue has been resolved at this time.

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.