It is not returning the enrollment type for the student in all courses, not specific to that course.įor my first student, it include 11 enrollment types (all StudentEnrollment). I'm not sure what you're trying to accomplish, but unless you are trying to determine if a student in a course is ever anything but a student in any of their other courses, then this is probably not be returning what you want. In short, you still have to handle pagination with GraphQL requests but now you have to handle it yourself rather than having to deal with the default per_page=10 and an upper limit of per_page=100. For GraphQL, it times out and you get the 504 gateway error if it cannot deliver the entire thing with one request and you do not specify pagination. With the regular API, it let you know there was extra pages in the links header. It sounds like Canvas is operating correctly but you're not handling pagination. It works for a course with 44 enrollments. This happens on a course with 331 enrollments for me. I get that error when I try a request that times out. When you come back, the problem may have fixed itself.I haven't started using GraphQL in my queries yet, although it has been tempting to get faster responses (the lack of SIS support is one blocker for me).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |