tl-its-umich-edu / tool-migration

App for migrating external (LTI) tools in Instructure's Canvas LMS.
1 stars 3 forks source link

Handle occasional invalid JSON or timeouts from Canvas using retries #4

Closed ssciolla closed 1 year ago

ssciolla commented 1 year ago

Given the number of API calls we're making during updating, we likely need to handle the occasional irregular status code. In the past, we've seen gateway timeouts and some incomplete JSON responses from Canvas.

We've written custom code to handles this before in Placement Exams and IPE, but something like tenacity could do the trick.