coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.92k stars 638 forks source link

HTTP Error 405: Method Not Allowed #592

Open royarjun0440 opened 4 years ago

royarjun0440 commented 4 years ago

🚨Please review the Troubleshooting section before reporting any issue. Don't forget also to check the current issues to avoid duplicates.

HTTP Error 405: Method Not Allowed When running through Docker

Your environment

Steps to reproduce

https://courses.edx.org/courses/course-v1:GTx+HCIxI+2T2019/course/

Expected behaviour

Download of course should start.

Actual behaviour

I'm on a Macbook that was having issues when I tried to do the recommended method using pip. I installed Docker and used the code snippet given:

docker run --rm -it \

   -v "$(pwd)/edx/:/Downloaded" \
   strm/edx-dl -u <email> -p <pass>

Which gives the following:

edx_dl version 0.1.10 Building initial headers for future requests. Getting initial CSRF token. Traceback (most recent call last): File "/usr/local/bin/edx-dl", line 11, in load_entry_point('edx-dl==0.1.10', 'console_scripts', 'edx-dl')() File "/usr/local/lib/python3.4/site-packages/edx_dl-0.1.10-py3.4.egg/edx_dl/edx_dl.py", line 1000, in main File "/usr/local/lib/python3.4/site-packages/edx_dl-0.1.10-py3.4.egg/edx_dl/edx_dl.py", line 425, in edx_get_headers File "/usr/local/lib/python3.4/site-packages/edx_dl-0.1.10-py3.4.egg/edx_dl/edx_dl.py", line 167, in _get_initial_token File "/usr/local/lib/python3.4/urllib/request.py", line 470, in open response = meth(req, response) File "/usr/local/lib/python3.4/urllib/request.py", line 580, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python3.4/urllib/request.py", line 508, in error return self._call_chain(args) File "/usr/local/lib/python3.4/urllib/request.py", line 442, in _call_chain result = func(args) File "/usr/local/lib/python3.4/urllib/request.py", line 588, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 405: Method Not Allowed

juju515 commented 4 years ago

I get the same error. I'm on Linux Mint OS. The rest is the same.

ps. Some 3-4 months ago eds-dl was working normally.

MATRIX30 commented 4 years ago

upgrade to the latest version of edx-dl 0.1.13 . it might be a first move to test out

designerscoders commented 4 years ago

upgrade to the latest version of edx-dl 0.1.13 . it might be a first move to test out

  1. upgrade to the latest version of edx-dl 0.1.13
  2. Python version: 3.8
  3. youtube-dl version: 2020.06.06

But still getting error on edx, " urllib.error.HTTPError: HTTP Error 405: Method Not Allowed "

Please help.

Animeshz commented 3 years ago

Any update on this?

I'm running it on docker, and with precompiled image its still resulting in the same error.

skwde commented 3 years ago

Same issue here with the pre-built docker image (edx-dl version 0.1.10 with python 3.4).

Building a new image from source with a newer python, e.g 3.9 (edx-dl version 0.1.13) gives urllib.error.HTTPError: HTTP Error 403: Forbidden

starm7md commented 3 years ago

same here guys and please if someone find anything please let us know

MarwanShehata commented 2 years ago

Same here