anx-reader icon indicating copy to clipboard operation
anx-reader copied to clipboard

[Bug]: WebDAV同步问题

Open tabortao opened this issue 9 months ago • 6 comments

Prerequisites|前提条件

  • [x] I have checked the troubleshooting|我已经查看过故障排除
  • [x] I have searched for similar issues and did not find any|我已经搜索过没有相同的问题

Describe the bug|描述问题

我 使用的 123 网盘webdav,安卓手机同步出现了问题。日志如下 SEVERE^^ 2025-03-23 20:20:55.136040^^ [DioException [bad response]: null Error: Method Not Allowed]:#0 WdDio.wdWriteWithStream (package:webdav_client/src/webdav_dio.dart:515) #1 AnxWebdav.uploadFile (package:anx_reader/providers/anx_webdav.dart:286) #2 AnxWebdav.syncFiles (package:anx_reader/providers/anx_webdav.dart:201) #3 AnxWebdav.syncData... (package:anx_reader/providers/anx_webdav.dart:120)

To reproduce|重现步骤

Webdav无法正常同步。

Expected behavior|预期行为

Webdav无法正常同步。

Screenshots|截图

No response

Platform (please complete the following information)|平台(请填写以下信息)

  • Platform: | 平台:Android 10 [e.g. Android]
  • OS: | 操作系统:Android 10 EMUI 11.0.0 [e.g. Android13(MIUI14)]
  • AnxReader Version: | 安读版本:1.4.1 [e.g. 1.2.0+2033]
  • Device: | 设备:华为P40 [e.g. Xiaomi 13]

Additional context|其他信息

No response

tabortao avatar Mar 23 '25 13:03 tabortao

同步时希望可以自动同步图书

ybbluesky avatar Mar 24 '25 02:03 ybbluesky

我安卓端可以和webdav(丐版家用webdav:https://github.com/hacdias/webdav)同步, 但是Mac端不行,连接测试是ok的,但是同步(无论是上传和下载)就一直出错: [DioException [bad response]: null Error: Not Found]:#0 WdDio.wdPropfind (package:webdav_client/src/webdav_dio.dart:191) #1 Client.readDir (package:webdav_client/src/client.dart:66) #2 AnxWebdav.init (package:anx_reader/providers/anx_webdav.dart:77) #3 _HomePageState.initAnx (package:anx_reader/page/home_page.dart:55)

LamoraLocke avatar Mar 25 '25 14:03 LamoraLocke

逻辑都一样,Mac端无法同步有点奇怪。这段报错是上传还是下载?WebDAV中有没有数据?

Anxcye avatar Apr 08 '25 10:04 Anxcye

支持下用更先进的S3,可以少很多同步的问题,速度还飞快😁。

tabortao avatar Apr 08 '25 12:04 tabortao

逻辑都一样,Mac端无法同步有点奇怪。这段报错是上传还是下载?WebDAV中有没有数据?

Webdav上是有数据的,就是安卓端上传的,Mac端是新安装还没有数据所以估计是下载

LamoraLocke avatar Apr 08 '25 14:04 LamoraLocke

我把所有设备的数据都清空,然后先导入Mac端,再同步到webdav,好吧,奇迹出现了,接下来所有的同步都丝般顺滑包括安卓端。。。只有魔法才能打败魔法么🤣

LamoraLocke avatar Apr 11 '25 03:04 LamoraLocke

同步已经优化

Anxcye avatar Apr 27 '25 03:04 Anxcye

🔒 This issue has been locked because it has been closed for 30 days.

此 issue 已被锁定,因为它已关闭 30 天。

If you believe this issue should be reopened, please create a new issue and reference this one.

如果您认为此 issue 应该重新打开,请创建新的 issue 并引用此问题。

github-actions[bot] avatar Sep 05 '25 01:09 github-actions[bot]