Issues with the Canvas Live API

Jump to solution
wguida
Community Participant

Hi All, 

Is anyone else having trouble accessing the drop-down menus on the Canvas Live API site? 

 

Screenshot 2025-02-18 205557.png

Whenever I try to expand one of the rows, I just get no response from the page. 

Labels (1)
0 Likes
1 Solution
chriscas
Community Coach
Community Coach

Hi @wguida,

I have seen some chatter on this issue on a different chat platform, and one of my colleagues from UMich, Matt Jones, posted a temporary workaround there.  I'll paste it here:

---

Local override method:

  • Browse to /doc/api/live (where the page will be broken)
  • Open developer tools (right click inspect or more tools menu), go to Sources tab.
  • Ctrl-O or ⌘-O and search for swagger.js
  • Right click and Override content, choose a location to save
  • Modify line around 510 from
this.isCollection = this.dataType && (this.dataType.toLowerCase() === 'array' || this.dataType.toLowerCase() === 'list' || this.dataType.toLowerCase() === 'set');

to

this.isCollection = Array.isArray(this.dataType) ? true : this.dataType && ['array', 'list', 'set'].includes(this.dataType.toLowerCase());

Refresh.

---

Someone else there was informed by Canvas support that an official fix is scheduled to go to production on Feb 26.

I hope this info helps!

-Chris

View solution in original post