TypeError: Cannot read properties of null (reading 'toString') when trying to read #452
-
When trying to run the script, I get the following error:
I have tried it with other calendars and they don't have the same problem. I assume the error lies in the .ics file, so please let me know what you suggest. I unfortunately can not motify the file but if there is something I can modify in the script to fix the error, that would be great. Here is a copy of my Code.gs file: https://pastebin.com/PkLL5ics. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Is this issue persistent every time this source calendar tries to run or does it run successfully the next time? I'm seeing this same error, but it's very sporadic so I haven't been able to troubleshoot it. |
Beta Was this translation helpful? Give feedback.
-
Seems like the failing event has an alarm without the 'trigger' property set, which is invalid syntax according the ical standard.
This will still fail on said event but not crash the whole script. |
Beta Was this translation helpful? Give feedback.
Seems like the failing event has an alarm without the 'trigger' property set, which is invalid syntax according the ical standard.
easy fix
set
var addAlerts = "no";
option
change helpers.gs
GAS-ICS-Sync/Helpers.gs
Lines 502 to 513 in 71bb0a6