edx-dl icon indicating copy to clipboard operation
edx-dl copied to clipboard

HTTP Error 405: Method Not Allowed

Open royarjun0440 opened this issue 4 years ago • 7 comments

🚨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

  • Operating System (name/version): MacOS 10.14.6
  • Python version: 3.8
  • youtube-dl version:
  • edx-dl version: 0.1.10

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

royarjun0440 avatar Mar 01 '20 06:03 royarjun0440

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.

juju515 avatar Mar 01 '20 23:03 juju515

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

MATRIX30 avatar Mar 11 '20 23:03 MATRIX30

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.

designerscoders avatar Jun 09 '20 01:06 designerscoders

Any update on this?

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

Animeshz avatar Sep 19 '20 12:09 Animeshz

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

skwde avatar Oct 25 '20 08:10 skwde

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

starm7md avatar Apr 03 '21 14:04 starm7md

Same here

MarwanShehata avatar Dec 12 '21 13:12 MarwanShehata