Read the statement by Michael Teeuw here.
Calendar has stopped working
-
Calendar has stopped working. Updated to latest version. Have been using Outlook Calendar for a few years with no issues. Calendar is stuck on “Loading…”
Error messages:
[2022-09-18 17:35:15.966] [ERROR] No toISOString function in curr.start //Microsoft/Utc:20220930T133000
[2022-09-18 17:35:15.967] [ERROR] No toISOString function in curr.recurrenceid //Microsoft/Utc:20220930T133000
[2022-09-18 17:35:15.972] [ERROR] No toISOString function in curr.recurrenceid //Microsoft/Utc:20221001T133000
[2022-09-18 17:35:17.277] [ERROR] Whoops! There was an uncaught exception…
[2022-09-18 17:35:17.278] [ERROR] TypeError: event.start.getFullYear is not a function
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:285:33
at Array.forEach (:null:null)
at Request._callback (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:91:25)
at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1154:10)
at Request.emit (events.js:210:5)
at Gunzip. (/home/pi/MagicMirror/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:299:28)
at Gunzip.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1183:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)Thoughts?
-
@Jonsar how did u update to the latest release?
-
@sdetweil I followed the posted instructions
-
I followed the posted instructions
-
@Jonsar so, did the git pull succeed?
do a
git status
in the MagicMirror folder
andgrep version package.json
-
@sdetweil I reinstalled and I am up to date. The error I get now is could not fetch calendar Error: forbidden. at NodeHelper.checkFetchStatus (/home/pi/MagicMirror/js/node_helper.js:121:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5) -
@Jonsar if u put the url in a browser, does it download the ics file?
there was a forced change to the Google urls for calendars a while back
-
@sdetweil No, it doesn’t. It gets stuck on Preparing to download. Is there a workaround?
Found this somewhere. Does it help?
Bottom line was that the following lines needed to be added into the request.
myHttpWebRequestOutlook.UserAgent = “SmileCRM”;
myHttpWebRequestOutlook.AuthenticationLevel =System.Net.Security.AuthenticationLevel.None; -
@Jonsar if u can’t download in a normal browser we can’t get it either.
-
@sdetweil Sorry. I can with the html version. The error I get now is this:
RangeError: Invalid time value
at Date.toISOString (:null:null)
at /home/pi/MagicMirror/modules/default/calendar/calendarutils.js:314:28
at Array.forEach (:null:null)
at Object.filterEvents (/home/pi/MagicMirror/modules/default/calendar/calendarutils.js:142:24)
at /home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:74:29
at processTicksAndRejections (node:internal/process/task_queues:96:5)