When calling the courses API I get a 504 Gateway Time-out error at random times. This is not a consistent error, but is happening once per month at least and I cannot find a cause to this problem. It doesn't seem to be related to outages and is always a 504 error when requesting 100 per_page from the courses endpoint API.
Does anyone have any experience with this error and anything they tried that may have worked?
Happened to me this morning too.
I, [2021-03-25T06:25:26.893253 #163982] INFO -- response: Status 504
This happens when Canvas is having trouble or communication between your device and Canvas are having trouble.
The only suggestion I have is if the response body looks like: