-
Notifications
You must be signed in to change notification settings - Fork 163
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
unknown error occurred in prepare_new_status #1095
Comments
The error message indicates that no events are returned by google when requesting items with those UIDs. Your configuration rule syncs items in the last 90 days. The first one repeated daily until more than 90 days ago, so it doesn't fit the criteria. I don't think that it should even have been listed when listing events in the first place. |
@WhyNotHugo That sounds plausible. In this case, the root cause would be a buggy server implementation that I can't do anything about... Is there a way to let vdirsyncer ignore such events (or rather treat them as non-existent and remove them from the local storage) rather than aborting the sync altogether? |
I have temporarily fixed this by applying the following patch:
This is quite similar to the change proposed with #866, so it would be really great to get the PR merged... |
This worked for me. Thank you! I have a Google Calendar with entries from 2011 through 2024 that wouldn't sync without this. |
i can attest that this patch resolved my issue with the zoho's caldav server as well. |
I'm using vdirsyncer to mirror events from Google Calendar to a local storage (see config below). A few weeks ago, my installation of vdirsyncer suddenly started throwing error messages - without changes to the configuration and AFAIR also without changes to the installed versions. In the meantime, I performed a full upgrade in the hope that it would fix things - no such luck.
The problem only concerns one of the calendars I mirror. I've isolated that calendar in a new pair, removed all of the data except for tokens and config, ran the discovery and then an initial sync - this already results in the error. The abbreviated log is
I've tried to identify the entries causing the trouble using https://developers.google.com/calendar/api/v3/reference/events/get - these are the responses I'm seeing:
and
I can't find entries in the calendar matching these dates - not surprising since they are cancelled. I can't find anything in the recycle bin either.
vdirsyncer, version 0.19.2
Syncing Google calendar to local file
Python 3.11.5
Gentoo Linux
The text was updated successfully, but these errors were encountered: