canvas-lms
canvas-lms copied to clipboard
gradebook page: Uncaught Error: SlickGrid requires a valid container, null does not exist in the DOM.
Summary:
When open gradebook page sometimes happening JS fail.
log in console: Uncaught Error: SlickGrid requires a valid container, null does not exist in the DOM.
at init (74-c-337638ddcd.js:423:35)
at new SlickGrid (74-c-337638ddcd.js:1346:1)
at Qi.initialize (gradebook-c-7f9290dc2a.js:1603:11)
at $a.createGrid (gradebook-c-7f9290dc2a.js:2939:20)
at $a.initGrid (gradebook-c-7f9290dc2a.js:2938:13)
at $a.finishRenderingUI (gradebook-c-7f9290dc2a.js:2598:113)
at Object.

Steps to reproduce:
no stable reproduce, sorry most people everything ok, but several have this problem 1. 2. 3.
Expected behavior:
successful load gradebook results
Actual behavior:
js fail and infinity loading page
Additional notes:
Canvas version: release/2020-11-18.29
Troubleshooting:
- Does the error persist on reload?
- What does
document.getElementById('gradebook_grid')return in the browser console?
@akaDJon Ah, you're on release/2020-11-18.29. Try the latest release?
Troubleshooting:
- Does the error persist on reload?
- What does
document.getElementById('gradebook_grid')return in the browser console?
not persist. one load everything ok, the next load fail, and next again ok

@akaDJon Ah, you're on
release/2020-11-18.29. Try the latest release?
no. it's difficult. but this error appeared recently. whole a year everything was ok
We're seeing this issue as well on origin/stable/2021-08-18 of the code when using Chrome.
@akaDJon - Looking the Canvas Release Notes it appears to be an issue that they've fixed in a more recent version.
https://community.canvaslms.com/t5/Known-Issues/Various-pages-fail-to-load-completely-in-Canvas-when-using/ta-p/500973
This behavior is resolved in the 2021-12-15 deploy.
I was able to deploy a newer version of canvas origin/stable/2022-02-16 and I am not able to reproduce the issue any longer.