Closed fulcus closed 3 years ago
looks like a issue with your moodle instance. Does the moodle app work with your instance? Can you send me the url of the instance? In theory we could skip the core_webservice_get_site_info
call, so I can handle the error and skip the retrieval of the userid (but then you have to set the userid in the config manual).
Yes that would be awesome!!
I created an account at your university, but unfortunately I still can't log in at the moodle app (in the browser I can log in, but to test it, the app needs to work). Therefore I can not test it myself. But I will try to implement this in the next days and test it on my own moodle. I will let you know when it is ready.
Thanks a lot! If you need any help with testing or anything else hmu on telegram @fulcus
Hi, do you have any update on this issue? A bunch of people from my uni contacted me about it. If you need a hand just lmk.
I am very sorry that I could not work on it in the last days. I was on vacation (In Austria much hiking <3). And am just in the middle of moving. On Wednesday I will tackle it :)
Eh, I tackled the issue this morning. I haven't managed to log in to your Moodle in the Moodle App yet. But I found out that on your Moodle it is enabled to view the tokens in the settings under "Security Keys" (https://webeep.polimi.it/user/managetoken.php?sesskey=...). I set the token in the settings of my Moodle downloader ("token": "7a90a25bdfxxxxx57899669d39",
). And I have had no problems downloading the courses I am enrolled in.
I therefore assume that the bug in your Moodle has been corrected, and core_webservice_get_site_info
no longer throws errors.
Please check if it works for you now.
I will still try to implement a manual workaround.
You can now set the version number and the user id manually. I have also already done a writeup: https://github.com/C0D3D3V/Moodle-Downloader-2/wiki/Set-user-id-and-Moodle-version-number-manually
It will be included in the next release, but you can also test it by downloading the branch manually.
I confirm that it works. Thanks a lot!!
I have logged in using sso with
moodle-dl --init --sso
and everything worked as expected. Then if I launchmoodle-dl
it throws this error:MoodleDownloader.log
Technical details
Ubuntu 20.04