-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve data sync cloud storage availability check logic #10206
Conversation
Improved url online checking logic. When 401 is returned, it can also be recognized as online
我测试了下,这里做 401 判断有点多余吧,因为在能够返回状态码的情况下是不会产生 error 的。 |
我的webdav ,返回 无 Location header,所以最后判断为 不在线,实际在线。
|
W 2024/01/17 15:30:17 net.go:122: check url [http://mywebdav/dav/note/] is online failed: Get "http://mywebdav/dav/note/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) 但退出时,因为不做是否在线判断,会触发同步。同步成功。 |
上面这个报错是网络超时,不是 401 |
环境我发到 [email protected] 邮箱,你可以验证下。 |
你好,我已经将调试过程录屏回复你邮件了,后续我们暂时就通过邮件交流吧,谢谢。 |
Improved URL online checking logic. When 401 is returned, it can also be recognized as online