-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicates every run #248
Comments
Update, ran on a fresh calendar today after uninstalling for the rest of the day yesterday to hopefully skirt rate limitations. First run ran beautifully, finishes in 919 seconds. Second run (after 30 minutes this time) runs much longer and starts getting rate limit errors while creating duplicates. |
I suspect your calendar is either missing event-ids completely or changing them each time the script is accessing it. This would explain why the script can not match events in gcal with events from the ics, therefore creating new ones on each run. As it times out on the second run it never gets to the end where it would delete the old versions of the events. Could you please share the content of the ics you are syncing |
Weirdly enough, the link wont even run through the sanitizer. Here's the link we're using (generated by a software called MLSchedules) |
As expected the event ids are not persistent. In combination with the huge amount of events (2000+) this leads to the rate limiting, script timing out and duplicates not getting removed. We can't do anything about the rate limiting, therefore the only solution i could offer right now is to further reduce the amount of events getting synced. This could be done by processing only events between today - 1 and today + 30 (for example), would that be suitable for your use case? |
I think that would work! How would I go about doing that? Would another solution be to ask them to use persistent event id's? I appreciate your replies. |
That would be the best solution for sure. However i don't know if they will be able to change that/how much time they need to do that.
Try this version of the script.
|
This resolved our issues without even using However, i've been still using
That's not too big of an issue because it happens on a past event, but somewhat worried about that happening with a new one. |
The following event is causing the error
It is supposed to end roughly 10hrs before it starts. Google API understandably does not accept this. I updated the script from above to recognize and correct this error by switching start/end times. The link above is still valid. |
This works thank you so much! |
Duplicate of #283 |
Hello,
I work at a school and have been using this script to sync some internal calendars for our security team. Recently it seems that every time the calendar syncs it creates duplicates of all of the events in them. I read that this could be caused by not giving enough time in between syncs so i enabled future only, updated our script, and set our frequency to 20 minutes. I even redeployed the entire script and used a fresh calendar. I've attached a screenshot of it after just the initial installation and waiting 20 minutes. Any help with this would be greatly appreciated.
I have one failed run, the log looks like this at the end
The timezone error comes up after every event. After this when it eventually runs again it starts then creates duplicate events for everything and eventually gets to
The text was updated successfully, but these errors were encountered: