derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.5k stars 191 forks source link

Script runs without errors but doesn't add events to calendar #293

Closed ryanbbrown closed 1 year ago

ryanbbrown commented 1 year ago

I didn't modify the script at all, other than changing the frequency and using the example sourceCalendars mapping. Here is the script. I have a calendar called test_cal. The script runs without error, but events never get added. I gave the script all the permissions it asked for when I ran it for the first time.

derekantrican commented 1 year ago

First, I don't recommend every minute. I would recommend every 5 minutes at the fastest, or every 15 minutes if that's sufficient for your needs.

Can you try running the "startSync" function and see if that gives any errors?

jonas0b1011001 commented 1 year ago

and using the example sourceCalendars mapping

The example ics isn't actually working currently as it is not completely conforming to the ical standard - we should really change the url.

  1. Just use any other ics you want to sync and it should work or
  2. Change line 1323 in ical.js.gs to make it ignore the wrong syntax: strict: false,
ryanbbrown commented 1 year ago

I made those changes and it works now, thank you!