by Michael Chan.
I would be interested to hear if anyone has experienced the issue raised by Matthew and found a remedy or workaround. We are a vendor that currently has an integration with Moodle where we call the core_course_get_courses method to get all the courses. Unfortunately, for one school, they experienced the same errors as described in this thread.
There is another thread that sort of delves into the possibility to filter the core_course_get_courses call by something like the "category id": https://moodle.org/mod/forum/discuss.php?d=348752
However, it does not appear that any work has been done in that area.