Giter Club home page Giter Club logo

Comments (6)

C0D3D3V avatar C0D3D3V commented on May 28, 2024 1

I uploaded an update 49e5b4e.
If you find any other bugs under windows, you are welcome to report them.

from moodle-dl.

shoeper avatar shoeper commented on May 28, 2024

Have you configured moodle as location? Don't know the exact name but there is a setting for the path / location of moodle.

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on May 28, 2024

Interesting bug, but it works fine for me.
Please try to use https://elearning.unisi.it/moodle/ as URL of Moodle

URL of Moodle:   https://elearning.unisi.it/moodle/
Username for Moodle:   guest
Password for Moodle [no output]:   guest
Login Failed! (The Moodle System rejected the Request. Details: Non ci sono ospiti qui! (Errorcode: noguest, Stacktrace: None, Debuginfo: None, Reproductionlink: None)) Please try again.

If that doesn't work either, I can explain how you can get the token manually.

from moodle-dl.

ManoloZocco avatar ManoloZocco commented on May 28, 2024

Thanks for the reply. I followed your instructions but I keep having the same error. I paste the exact procedure I do. I also checked the requirements.

c:\path_to_MD2> pip3 install -r requirements.txt
Requirement already satisfied: sentry_sdk>=0.13.5 in c:\path\to\python\python37\lib\site-packages (from -r requirements.txt (line 1)) (0.14.1)
Requirement already satisfied: certifi in c:\path\to\python\python37\lib\site-packages (from sentry_sdk>=0.13.5->-r requirements.txt (line 1)) (2019.6.16)
Requirement already satisfied: urllib3>=1.10.0 in c:\path\to\python\python37\lib\site-packages (from sentry_sdk>=0.13.5->-r requirements.txt (line 1)) (1.25.3)

c:\path_to_MD2> python main.py --init
Do you want to override the existing config [y/n]?   y
Do you want to activate Notifications via mail [y/n]?   n
Do you want to configure Error Reporting via Sentry? [y/n]n
[The following Credentials are not saved, it is only used temporarily to generate a login token.]
URL of Moodle:   https://elearning.unisi.it/moodle/
Username for Moodle:   myuser.name
Password for Moodle [no output]:
Error while communicating with the Moodle System! (An Unexpected Error happened on side of the Moodle System! Status-Code: 404
Header: [('Date', 'Wed, 19 Feb 2020 13:29:36 GMT'), ('Server', 'Apache/2.4.7 (Ubuntu)'), ('Content-Length', '304'), ('Content-Type', 'text/html; charset=iso-8859-1')]
Response: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL /moodle\\login/token.php was not found on this server.</p>\n<hr>\n<address>Apache/2.4.7 (Ubuntu) Server at elearning.unisi.it Port 443</address>\n</body></html>\n') Please try again.
URL of Moodle:

from moodle-dl.

C0D3D3V avatar C0D3D3V commented on May 28, 2024

Ok, I could reproduce the bug now, it only exists under Windows. It doesn't occur under Linux.
It doesn't help to generate the token manually. I'll do some testing and try to fix the bug quickly.

You could however try to generate a token and then create a config.json like I explained here

To generate a token you need to visit this link:
https://www.yourmoodle.com/login/token.php?username=USERNAME&password=PASSWORD&service=moodle_mobile_app

Replace USERNAME and PASSWORD with your username and password.

from moodle-dl.

ManoloZocco avatar ManoloZocco commented on May 28, 2024

Generating the token, and putting the information in the json file, everything worked perfectly. Thanks so much!

from moodle-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.