Closed fishfree closed 9 months ago
This is probably due to an access issue on the Moodle end. I was able to reproduce this by providing a wrong access token in .moodle. I admit the error message is not very helpful in this regard (i.e., thanks for the useful issue!).
re: Python version: At least 3.10 and 3.11 work.
Thank you, jaluoma! I can confirm my token is correct. Maybe it's because of the token-associated user has not enough permissions. Could you write it clearly here or in the README, please?
Edit: after reading the source file moodle.py, I realized I need add the core_course_get_contents
function to the Moodle service.
Thanks! The documentation sure needs to be better. :)
A great workpiece!
BTW: What's the exact python version of your working instance? @jaluoma Thank you very much!