messense / aliyundrive-webdav

阿里云盘 WebDAV 服务
MIT License
9.62k stars 1.09k forks source link

OpenWRT下,2.2.1版webdav运行报错,refresh token failed #842

Closed exitwounds1977 closed 1 year ago

exitwounds1977 commented 1 year ago

问题描述

运行报错。已关闭路由器上所有服务,但问题仍然存在。

  1. 无法访问https://websv.aliyundrive.com/token/refresh。从路由器、换了网络的电脑、搬瓦工VPS访问此链接,均报错。

[root@vps-20181111 ~]# curl -v https://websv.aliyundrive.com/token/refresh

  1. 可以访问https://www.aliyundrive.com。从路由器、换了网络的电脑、搬瓦工VPS访问此链接,均OK。 root@OpenWrt:~# curl -v https://www.aliyundrive.com

    GET / HTTP/1.1 Host: www.aliyundrive.com User-Agent: curl/7.80.0 Accept: /

    < HTTP/1.1 200 OK < Date: Sat, 17 Jun 2023 17:34:35 GMT < Content-Type: text/html; charset=utf-8 < Transfer-Encoding: chunked < Connection: keep-alive < Vary: Accept-Encoding < Access-Control-Allow-Credentials: true < Access-Control-Expose-Headers: Content-MD5,X-Request-Id,X-Canary,X-Share-Token,X-Ca-Request-Id,X-Ca-Error-Code,X-Ca-Error-Message < Cache-Control: private, no-cache, max-age=0, s-max-age=0, must-revalidate < Etag: "C4091909DBB8403FED095204975EEDE6" < Expires: 0 < Last-Modified: Sat, 17 Jun 2023 17:34:35 GMT < Pragma: no-cache < Server: Gear/1.25.1 < Strict-Transport-Security: max-age=15552000;includeSubDomains; < Vary: Accept-Encoding,Origin < X-Canary: product=adrive

重现步骤

  1. 根据文档,在openwrt上安装2.2.1版的ipk文件
  2. 访问链接,https://messense-aliyundrive-webdav-backendrefresh-token-ucs0wn.streamlit.app/,扫码后获得token
  3. 根据文档,设置OpenWRT上的参数
  4. 按“保存&应用”按钮

版本

2.2.1

运行平台

OpenWRT

日志

2023-06-17T17:24:33.197290Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:34.199403Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:35.200508Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:36.201457Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:37.202496Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:38.204112Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:39.205955Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:40.207763Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:41.209684Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:42.211767Z WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve 2023-06-17T17:24:43.213040Z ERROR aliyundrive_webdav::drive: refresh token failed: error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve Error: initialize aliyundrive client failed

exitwounds1977 commented 1 year ago

行吧。只能换成docker的,一把成功。