cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ThomasDomas
Community Participant

High Rate Of 504 Errors From API When Downloading Quiz Reports

Jump to solution

Hi, this is my first post. I work in analytics for for my institution. I built a program that goes through canvas and downloads the Student Analysis reports for each quiz in each course. However, I seem to be getting an unusually high number of 504 timeout returns (about 70%) with my API calls. The API call that seems to be causing this is

POST /api/v1/courses/:course_id/quizzes/:quiz_id/reports?quiz_report[report_type]=student_analysis&quiz_report[includes_all_versions]=1

If the report generation takes too long (seems to be about 10 seconds but I haven't programmatically timed it), generation stops and a 504 error is returned. Is there any way I can reduce the rate of 504 errors?

Labels (1)
0 Kudos
1 Solution
JeffW
Community Participant

Hi @ThomasDomas 

I am sorry your post went so long without a reply! It seems you have stumped the Canvas Community on this one.

I personally do not have experience with this, but if you were to reach out to Canvas Support I am sure they could help you gain more insight to this issue.

View solution in original post

1 Reply
JeffW
Community Participant

Hi @ThomasDomas 

I am sorry your post went so long without a reply! It seems you have stumped the Canvas Community on this one.

I personally do not have experience with this, but if you were to reach out to Canvas Support I am sure they could help you gain more insight to this issue.