Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
Whenever I try to generate a report for a New Quiz via cURL (as a test), I get back a progress object (as expected) but when I query the Progress object, the status is never "complete." It is always "running." I've been waiting on a student report for over an hour.
In the UI, this takes 5 seconds.
This is the call that I am making in cURL:
curl 'https://bruinlearn.ucla.edu/api/quiz/v1/courses/my_course/quizzes/my_new_quiz/reports'
-X POST
-H 'Authorization: Bearer 'My Token'
-F 'quiz_report[report_type]=student_analysis'
-F 'quiz_report[format]=csv'
Am I doing something wrong or is this a bug?
(I am trying to write a Python script that generates the report, downloads it when it's ready, and then uploads it to Google Sheets)
Hi @RyanRosario, I'm having the same issue but when the quiz_report[format] value is JSON. I'm working with nextJS api call, after sending the POST to create the report using the same endpoint as you and tracking it with this other "/api/v1/progress/:id" the state result for the report is always "running" but on the UI it only takes seconds. About the CSV format I can created it and see it as "complete" but when I download it, I see this error {"errors":["The specified resource does not exist"]}
Have you had any updates about this issue? I'll get in contact with Canvas support and let you know if I have news about it.
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In