przemub / ics_caldav_sync

ICS to CalDAV synchronisation
MIT License
5 stars 6 forks source link

Docker errors #3

Open axelsegebrecht opened 5 months ago

axelsegebrecht commented 5 months ago

Hi Przemysław, thanks for releasing this. I am using the docker container and getting errors while syncing a remote ICS feed with my Nextcloud.

My .env file:

REMOTE_URL: https://outlook.office365.com/owa/calendar/d075eae4ed724a8d8c659e5c37a7a86f@bebravernow.com/745ceeb327c140dc977ac05cd28ac18b6802823428239003014/calendar.ics
LOCAL_URL: https://<redacted>/remote.php/dav/
LOCAL_CALENDAR_NAME: Business
LOCAL_USERNAME: <redacted>
LOCAL_PASSWORD: <redacted>
SYNC_EVERY: 15 minutes

The error log:

/usr/local/lib/python3.11/site-packages/ics/component.py:85: FutureWarning: Behaviour of str(Component) will change in version 0.9 to only return a short description, NOT the ics representation. Use the explicit Component.serialize() to get the ics representation.
  warnings.warn(

The outcome: No events are synchronized

przemub commented 5 months ago

Hi Axel, thanks so much for the bug report!

I made some changes that should simplify debugging this. Please use dev branch (https://github.com/przemub/ics_caldav_sync/tree/dev). Could you set DEBUG=1 in .env so we can learn more about what happened?

axelsegebrecht commented 5 months ago

Thank you for the prompt attention :-) I have tried it with a fresh container after I checked out the dev branch. The error seems the same and the end result too: only few of the events show up.

The calendar after a five minute brew: image

This is the calendar overlayed with the source calendar (green): image

The logs:

/usr/local/lib/python3.11/site-packages/ics/component.py:85: FutureWarning: Behaviour of str(Component) will change in version 0.9 to only return a short description, NOT the ics representation. Use the explicit Component.serialize() to get the ics representation.
  warnings.warn(
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The env:

REMOTE_URL: https://calendar.google.com/calendar/ical/axel%40segebrecht.com/public/basic.ics
LOCAL_URL: https://<redacted>/remote.php/dav/
LOCAL_CALENDAR_NAME: Business
LOCAL_USERNAME: <redacted>
LOCAL_PASSWORD: <redacted>
SYNC_EVERY: 5 minutes
DEBUG: 1