-
Notifications
You must be signed in to change notification settings - Fork 638
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
Error 400: Bad Request #568
Comments
Failing on macOS Mojave (10.14.6) too, Python 2.7.
|
Made some progress by changing the lines
Now I get the list of courses
Not sure if this a proper fix, though. The program will only download the course surveys
|
I tested. Now I'm able to login successfully. If the Course is only partially downloaded , please see the follow link. Thank you! |
Released version 0.1.11, give it a try. |
edx_dl version 0.1.10
Building initial headers for future requests.
Getting initial CSRF token.
Traceback (most recent call last):
File "edx-dl.py", line 6, in
edx_dl.main()
File "E:\edx\edx-dl-master\edx_dl\edx_dl.py", line 1000, in main
headers = edx_get_headers()
File "E:\edx\edx-dl-master\edx_dl\edx_dl.py", line 425, in edx_get_headers
'X-CSRFToken': _get_initial_token(EDX_HOMEPAGE),
File "E:\edx\edx-dl-master\edx_dl\edx_dl.py", line 167, in _get_initial_token
opener.open(url)
File "E:\Anaconda3\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "E:\Anaconda3\lib\urllib\request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "E:\Anaconda3\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "E:\Anaconda3\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "E:\Anaconda3\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request
I'm trying to download from Edx, But I can't make the login. For example when I put : python edx-dl.py -u XXXXXX -p XXXXX --list-courses. or other command line, it shows the above error.
The text was updated successfully, but these errors were encountered: