eouia / MMM-CalendarExt

Calendar views for MagicMirror
MIT License
57 stars 18 forks source link

TypeError: exdate[name].toISOString is not a function with Office 365 ics #70

Closed tars01 closed 4 years ago

tars01 commented 5 years ago

I see this was raised as issue #46 but no resolution. I am facing the same issue and wondering if there is a resolution or workaround to this? I have this working without any issues when pointing to a Google calendar ics file but when I try and point it to Office 365 calendar I am having the issue with loading the ics file:

'TypeError: exdate[name].toISOString is not a function'

Please see output from pm2 log:

/home/pi/.pm2/logs/mm-error.log last 15 lines: 0|mm | at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1161:10) 0|mm | at Request.emit (events.js:182:13) 0|mm | at IncomingMessage. (/home/pi/MagicMirror/node_modules/request/request.js:1083:12) 0|mm | at Object.onceWrapper (events.js:273:13) 0|mm | TypeError: exdate[name].toISOString is not a function <---------- 0|mm | at Object.EXDATE (/home/pi/MagicMirror/modules/MMM-CalendarExt/vendor/ical.js/ical.js:200:35) 0|mm | at Object.handleObject (/home/pi/MagicMirror/modules/MMM-CalendarExt/vendor/ical.js/ical.js:379:41) 0|mm | at Object.parseICS (/home/pi/MagicMirror/modules/MMM-CalendarExt/vendor/ical.js/ical.js:420:20) 0|mm | at Request._callback (/home/pi/MagicMirror/modules/MMM-CalendarExt/vendor/ical.js/node-ical.js:18:23) 0|mm | at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22) 0|mm | at Request.emit (events.js:182:13) 0|mm | at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1161:10) 0|mm | at Request.emit (events.js:182:13) 0|mm | at IncomingMessage. (/home/pi/MagicMirror/node_modules/request/request.js:1083:12) 0|mm | at Object.onceWrapper (events.js:273:13)

eouia commented 5 years ago

Can you share the .ics for me to test? eouia0819@gmail.com

tars01 commented 5 years ago

It's confidential unfortunately, is there sections of it I can pull out to help identify the issue?

eouia commented 5 years ago

Sorry, I have no idea about it.

tars01 commented 5 years ago

OK thanks. I am trying to clean out all the confidential data in the ics file so I can send to you.

Thanks


From: Seongnoh Sean Yi notifications@github.com Sent: 11 October 2019 14:01 To: eouia/MMM-CalendarExt MMM-CalendarExt@noreply.github.com Cc: Mark mark_joyner@hotmail.com; Author author@noreply.github.com Subject: Re: [eouia/MMM-CalendarExt] TypeError: exdate[name].toISOString is not a function with Office 365 ics (#70)

Sorry, I have no idea about it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/eouia/MMM-CalendarExt/issues/70?email_source=notifications&email_token=AHCP5SN4MEWMKBY6PQNDBK3QOCBKZA5CNFSM4I7YNXHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBAC43Q#issuecomment-541077102, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHCP5SNBR6HLEOMDIRHUM4LQOCBKZANCNFSM4I7YNXHA.