numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

EditorLink: deal with invalid JSON response #264

Open christianp opened 1 year ago

christianp commented 1 year ago

Because of a bug, the mathcentre editor was returning a "page not found" response for the api/projects view.

The method to update the EditorLink's cache should deal with invalid responses. At the moment it just saves the response without looking at it, and then there's an error when you try to use it.