openwrt通过管理页面和命令行都无法获取Refresh Token

#1006 · closed · 3 comments

View on GitHub ↗

jianminLee

### 问题描述 openwrt:24.10 内核6.6.73。 已科学上网,无网络问题。 双击页面Refresh Token扫码授权后无反应。 通过命令行`aliyundrive-webdav qr login`扫码后出现错误: ```js 2025-03-22T18:26:39.391366Z INFO aliyundrive_webdav: Please scan the qrcode to login in 120 seconds Error: error decoding response body: expected value at line 1 column 1 Caused by: expected value at line 1 column 1 ``` ### 重现步骤 命令行执行`aliyundrive-webdav qr login`后,扫码授权。 ### 版本 v2.3.3 ### 运行平台 openwrt x86_64 24.10 内核6.6.73 ### 日志 ```js 2025-03-22T18:26:39.391366Z INFO aliyundrive_webdav: Please scan the qrcode to login in 120 seconds Error: error decoding response body: expected value at line 1 column 1 Caused by: expected value at line 1 column 1 ```

Comments

irockstar

<img width="951" alt="Image" src="https://github.com/user-attachments/assets/278969f5-114c-4a99-99a9-83c711b298d1" /> 是不是阿里云返回数据结构变了? @messense

irockstar

https://github.com/messense/aliyundrive-webdav/blob/main/src/login/mod.rs#L59 INFO aliyundrive_webdav::login: fetch_refresh_token 方法 response 返回内容: status: 422 Unprocessable Entity, headers: {"date": "Mon, 05 May 2025 12:32:47 GMT", "server": "Fly/f22fdaf3f (2025-04-30)", "fly-request-id": "01JTG6YGNFCWCZW5NHM82EK4AR-sin", "content-type": "text/plain; charset=utf-8", "via": "2 fly.io, 2 fly.io"}, body: invalid refresh token

QLOJI

请问还有人修复吗?感觉不行好久了