Comments (6)
I uploaded an update 49e5b4e.
If you find any other bugs under windows, you are welcome to report them.
from moodle-dl.
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.
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.
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.
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.
Generating the token, and putting the information in the json file, everything worked perfectly. Thanks so much!
from moodle-dl.
Related Issues (20)
- Don't try to download the mailto links HOT 2
- Moodle rejected system request - invalid_response_exception HOT 3
- Nothing downloads HOT 3
- Download fails on some courses HOT 1
- Unable to lock cache on Moodle v4 HOT 4
- Retry on timeout
- config.json should be created unreadable to others HOT 2
- Do not download large files HOT 3
- Usage of -nt -u -pw just hangs moodle-dl HOT 1
- Same file with identical content gets downloaded again every time Moodle-DL is executed HOT 6
- NoneType has no len() - not downloading HOT 1
- Size estimation increases during download HOT 8
- Rework optional downloads
- Is there anyway to use it to DL all "Books" on a course? HOT 7
- The Moodle System rejected the Request [invalidprivatetoken] HOT 1
- Quizzes are not properly downloaded HOT 9
- Calendar mod fails with 'dict' object has no attribute 'append' HOT 1
- question re pip install HOT 9
- Add index to subfolders and files
- Encountering this SSL error whilst running --init HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-dl.