onedrived-dev icon indicating copy to clipboard operation
onedrived-dev copied to clipboard

no reaction to webhooks

Open cbergmann opened this issue 7 years ago • 3 comments

Hi, I installed onedrived under arch linux via pip. When I create a file locally it is uploaded and I can see it online but when I create or delete a file online it is not synced to my local host. It seems that the webhook request is received but not reacted on. The logfile contains multiple of these lines after an online update:

[2017-06-28 12:53:52,259] INFO: Webhook: b'POST /BqKFk3a96rG HTTP/1.1\r\n'

The first one appears directly after I create the file online.

cbergmann avatar Jun 28 '17 14:06 cbergmann

This time it reacted but with a multi-minute delay:

[2017-06-28 16:45:54,253] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:46:23,545] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:46:23,678] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:46:23,809] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:46:23,941] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:46:24,075] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:47:59,944] INFO: Webhook: b'POST /FEdloZvU3 HTTP/1.1\r\n'
[2017-06-28 16:49:59,944] INFO: WebhookWorker: Added task to check delta update for Drive 3abaa10b237a9aef.
[2017-06-28 16:50:00,473] INFO: Worker-1: Downloading file "3ABAA10B237A9AEF!2149" to "/home/clb/OneDrive/Book1.xlsx".
[2017-06-28 16:50:01,487] INFO: Worker-1: Finished downloading item "3ABAA10B237A9AEF!2149".
[2017-06-28 16:50:01,658] INFO: MainThread: Ignored Event(wd=1, mask=256, cookie=0, name='.Book1.xlsx.odtemp!') on path "/home/clb/OneDrive/.Book1.xlsx.odtemp!" by path filter. Flags={flags.CREATE}.
[2017-06-28 16:50:01,658] INFO: MainThread: Ignored Event(wd=1, mask=8, cookie=0, name='.Book1.xlsx.odtemp!') on path "/home/clb/OneDrive/.Book1.xlsx.odtemp!" by path filter. Flags={flags.CLOSE_WRITE}.
[2017-06-28 16:50:01,659] INFO: MainThread: Ignored Event(wd=1, mask=64, cookie=5175, name='.Book1.xlsx.odtemp!') on path "/home/clb/OneDrive/.Book1.xlsx.odtemp!" by path filter. Flags={flags.MOVED_FROM}.

cbergmann avatar Jun 28 '17 14:06 cbergmann

It seems that if I reduce webhook_action_delay_sec it syncs faster. What is the reason for this delay?

cbergmann avatar Jul 03 '17 07:07 cbergmann

But not always. sometimes it still syncs slowly. Currently i test with webhook_action_delay_sec=0 and by creating and deleting folders online.

cbergmann avatar Jul 03 '17 08:07 cbergmann