C0D3D3V / Moodle-DL

Moodle-DL downloads course content fast from Moodle (eg. lecture pdfs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSO login

wasicse opened this issue · comments

Hi,

I am not able to login Moodle. I got the following error.

moodle_dl.moodle_connector.request_helper.RequestRejectedError: An Unexpected Error happened on side of the Moodle System! Status-Code: 404
Header: {'Date': 'Tue, 28 Jun 2022 05:13:51 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Server': 'Apache', 'Strict-Transport-Security': 'max-age=63072000; includeSubdomains; preload', 'Set-Cookie': 'MoodleSession=mhhid96pb8h1sj70380ienikfk; path=/; secure', 'Expires': '', 'Cache-Control': 'private, pre-check=0, post-check=0, max-age=0, no-transform', 'Pragma': 'no-cache', 'Content-Language': 'en-us', 'Content-Script-Type': 'text/javascript', 'Content-Style-Type': 'text/css', 'X-UA-Compatible': 'IE=edge', 'Accept-Ranges': 'none'}
Response:

<title>404 Error: File not found</title>

I am running the following command:

moodle-dl --sso

and here is my configuration file:

{
"token": "AAAAAA",
"moodle_domain": "moodle.uno.edu",
"moodle_path": "/moodle/"
}

Any help is appreciated. Thanks.

Try to run moodle-dl -c and if that works answer the first question with yes. Then you can answer the remaining questions, and after that try to run moodle-dl normaly.

Also I guess your Moodle Adress is wrong, Are you sure it is moodle.uno.edu/moodle because I get only an error on that page. If that is the case, just fix the URL and ignore my comments from above.

Try to run moodle-dl --init --sso
and use as moodle URL https://moodle.uno.edu/

Try to run moodle-dl --init --sso and use as moodle URL https://moodle.uno.edu/0

I have updated the configuration file.

{
"token": "sssssssss",
"moodle_domain": "moodle.uno.edu",
"moodle_path": "/my/",
"userid": 53232,
"version": 2021051705
}

I have also tried all of them. I am having the same error:

moodle_dl.moodle_connector.request_helper.RequestRejectedError: An Unexpected Error happened on side of the Moodle System! Status-Code: 404

Thanks.

I also tried to run with docker but it did not work either. Thanks.

Here is the log and configuration file when I ran moodle-dl command.

your moodle Url is still wrong

set "moodle_path": "/",

I wonder why you do not use the configurator to setup the config.

Thank you so much. The command is working now.