rexzhang / asgi-webdav

An asynchronous WebDAV server implementation, Support multi-provider, multi-account and permission control.
https://rexzhang.github.io/asgi-webdav/
MIT License
75 stars 14 forks source link

orgzly同步时报“not a valid DAV response ” #29

Open wxcatv opened 1 year ago

wxcatv commented 1 year ago

asgidav v0.91、v1.3.2都测试过。 端口配置:-p 0.0.0.0:8090:8000 winscp正常,但orgzly报“not a valid DAV response ”。 orgzly配置:dav://192.168.3.2:8900/logseq, 报错后,改为http://192.168.3.2:8900/logseq,也报错。 查询发现https://www.reddit.com/r/orgmode/comments/drzptk/orgzly_adds_webdav_support/,通过webdav连接NextCloud server正常。

rexzhang commented 1 year ago

有服务端的日志么?

wxcatv commented 1 year ago

2023-05-14 10:40:01,833 INFO: [asgi_webdav.config] Load config value from config file:/data/webdav.json, INFO: [asgi_webdav.server] ASGI WebDAV Server(v1.3.2) starting..., INFO: [asgi_webdav.auth] Register User: logseq, allow:['^/$', '^/logseq'], deny:[], INFO: [asgi_webdav.web_dav] Mapping Prefix: /logseq => file:///data/logseq, INFO: [asgi_webdav.server] ASGI WebDAV Server running on http://0.0.0.0:8000 (Press CTRL+C to quit), INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 401 None - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 207 Basic - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 207 Basic - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 401 None - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 207 Basic - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.47 - "PROPFIND /logseq" 207 Basic - okhttp/4.10.0-RC1, INFO: [asgi_webdav.server] 192.168.3.66 - "OPTIONS /logseq" 401 None - WinSCP/5.21.8 neon/0.32.4, INFO: [asgi_webdav.server] 192.168.3.66 - "OPTIONS /logseq" 200 Basic - WinSCP/5.21.8 neon/0.32.4, INFO: [asgi_webdav.server] 192.168.3.66 - "PROPFIND /logseq" 207 Basic - WinSCP/5.21.8 neon/0.32.4, INFO: [asgi_webdav.server] 192.168.3.66 - "PROPFIND /logseq" 207 Basic - WinSCP/5.21.8 neon/0.32.4,

rexzhang commented 1 year ago

从日志上看,服务端没有报错,可能是客户端对服务端返回的解析问题,这个属于兼容性问题.不过我手上没有供测试的安卓设备,暂时无能为力