You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following is the only thing the front-end displays in the error alert:
Get Canvas Events Error! Try refreshing the page to fix any problems.
Upon further inspection, it looks like https://api.mymicds.net/canvas/get-events is returning a 502 gateway error, typically meaning that the back-end crashed on request. Looking at the back-end logs, the following is thrown:
3|mymicds | TypeError: Cannot read property 'length' of null
3|mymicds | at canvas.getFromCache (/home/apps/MyMICDS/MyMICDS-v2/src/libs/feeds.js:226:12)
3|mymicds | at users.get (/home/apps/MyMICDS/MyMICDS-v2/src/libs/canvas.js:384:4)
3|mymicds | at userdata.find.toArray (/home/apps/MyMICDS/MyMICDS-v2/src/libs/users.js:51:4)
3|mymicds | at handleCallback (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb/lib/utils.js:120:56)
3|mymicds | at /home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb/lib/cursor.js:860:16
3|mymicds | at handleCallback (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb-core/lib/cursor.js:171:5)
3|mymicds | at setCursorDeadAndNotified (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb-core/lib/cursor.js:505:3)
3|mymicds | at nextFunction (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb-core/lib/cursor.js:651:7)
3|mymicds | at Cursor.next [as _next] (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb-core/lib/cursor.js:692:3)
3|mymicds | at fetchDocs (/home/apps/MyMICDS/MyMICDS-v2/node_modules/mongodb/lib/cursor.js:856:10)
Looks like this may be a back-end issue then. After fixing that, it's possible that the error will be fixed. Depends on whether the front-end correctly handles the API request if it works.
Apparently there's some error on the planner of a user hasn't inserted their canvas url. This should cease.
The text was updated successfully, but these errors were encountered: