mrvladus / Errands

Todo application for those who prefer simplicity.
MIT License
288 stars 66 forks source link

Problems with CalDav-Synchronisation #209

Closed CodingTurtle2 closed 6 months ago

CodingTurtle2 commented 6 months ago

(I use ConsoleH, which provides CalDav, if that's important) Changes are only applied if I made them on ConsoleH, but not on the CalDav server if I made them with Errands. So I think, it does not synchronize with the CalDav-Server. For Example:

mrvladus commented 6 months ago

Can you copy terminal output of flatpak run io.github.mrvladus.List?

CodingTurtle2 commented 6 months ago

I found various errors, one of them were just - I think - gtk problems:

(errands:2): Gtk-WARNING **: 14:03:18.250: Broken accounting of active state for widget 0x564b29000690(AdwToastOverlay)

(errands:2): Gtk-WARNING **: 14:03:18.250: Broken accounting of active state for widget 0x564b287c82b0(AdwBreakpointBin)

(errands:2): Gtk-WARNING **: 14:03:18.250: Broken accounting of active state for widget 0x564b289ce9a0(errands+widgets+window+Window)

But when I applied some changes, this happend (Check old Task):

[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI
[DEBUG] Sync: Getting tasks for tasks~hJGt-vIseocvmc2azswvnf1
[DEBUG] Sync: Update task on remote: 20240219104256.C9-d6Fw8yWUIe2Ut9LlLofN@webmail.your-server.de
[ERROR] Sync: Can't update task on remote: 20240219104256.C9-d6Fw8yWUIe2Ut9LlLofN@webmail.your-server.de. PutError at '200 OK

b'<html>\n<head><title>Horde :: Fatal Error</title></head>\n<body style="background:#fff; color:#000"><h1>A fatal error has occurred</h1><h3>Call to a member function getByUID() on null</h3><h3>Details have been logged for the administrator.</h3></body></html>'', reason no reason
[DEBUG] Data: Clean deleted
[DEBUG] Lists: Update UI...
[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI

(Deleting task):

[DEBUG] Data: Clean deleted
[DEBUG] Lists: Update UI...
[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI
[INFO] Delete completed tasks
[INFO] Task: Move to trash: '20240219104256.C9-d6Fw8yWUIe2Ut9LlLofN@webmail.your-server.de'
[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI
[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI
[DEBUG] Lists: Switch list
[DEBUG] Trash: Show confirm dialog
[INFO] Trash: Clear
[INFO] Sync: Sync tasks with remote
[DEBUG] Sync: Getting tasks for tasks~hJGt-vIseocvmc2azswvnf1
[DEBUG] Sync: Update task on remote: 20240219104256.C9-d6Fw8yWUIe2Ut9LlLofN@webmail.your-server.de
[ERROR] Sync: Can't update task on remote: 20240219104256.C9-d6Fw8yWUIe2Ut9LlLofN@webmail.your-server.de. PutError at '200 OK

b'<html>\n<head><title>Horde :: Fatal Error</title></head>\n<body style="background:#fff; color:#000"><h1>A fatal error has occurred</h1><h3>Call to a member function getByUID() on null</h3><h3>Details have been logged for the administrator.</h3></body></html>'', reason no reason
[DEBUG] Data: Clean deleted
[DEBUG] Lists: Update UI...
[DEBUG] Task list tasks~hJGt-vIseocvmc2azswvnf1: Update UI

I didn't send the complete console output, because the GTK problems have spammed the console

CodingTurtle2 commented 6 months ago

I've tested the python library "python-caldav" and I noticed that I made a big mistake, so that it looked like it would work. So it seems that this is actually a python-caldav issue

mrvladus commented 6 months ago

Yeah, I think so too. Probably ConsoleH doesn't follow CalDAV protocol completely or they changed it significantly.