AlistGo / AlistGo/alist

[Bug] Baidu Netdisk (errno 20016) and 360 AI YunPan (header error) fail to load

Ouverte
#9,644 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Go
Étoiles
50.2k
Forks
7.9k
Merge moyen
7 j 21 h
PR mergées (30 j)
6

Description

### Please make sure of the following things

- [x] I have read the [documentation](https://alistgo.com).
我已经阅读了[文档](https://alistgo.com)。

- [x] I'm sure there are no duplicate issues or discussions.
我确定没有重复的issue或讨论。

- [x] I'm sure it's due to `AList` and not something else(such as [Network](https://alistgo.com/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alistgo.com/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。

- [x] I'm sure this issue is not fixed in the latest version.
我确定这个问题在最新版本中没有被修复。

### AList Version / AList 版本

v3.64.0

### Driver used / 使用的存储驱动

Baidu Netdisk, 360AI YunPan

### Describe the bug / 问题描述

### 1. 百度网盘 (Baidu Netdisk)
存储状态报错:`req: [https://pan.baidu.com/rest/2.0/xpan/as] ,errno: 20016`
- **现象描述**:配置 Refresh Token 后无法加载目录,提示 Access Token 过期或 Refresh Token 失效(errno 20016)。即使更新 Token,AList 也未能自动完成刷新握手。

### 2. 360 AI 云盘 (360AI YunPan)
存储状态报错:`yunpan360.OpenAuthResp.Data: readObjectStart: expect { or n, but found [, error found in #10 byte of ... | "errmsg": "header error"`
- **现象描述**:填入正确的 API Key / Auth Token 挂载后无法正常登录与加载,返回 JSON 解析异常及 `header error`,疑似 360 官方 API 请求头结构变化或后端返回格式变更导致解析失败。

Image
Image

### Reproduction / 复现链接

1. 在 AList 后台添加存储(Baidu Netdisk 或 360AI YunPan)。
2. 按官方文档填入必需参数(如百度网盘的 Refresh Token / 客户端密钥,或 360 的 API Key)。
3. 保存后回到“存储”列表,状态显示为非 work 状态,抛出上述错误提示。

### Config / 配置

**Baidu Netdisk Storage Settings (from AList Web UI):**
- **Mount Path**: /网关管理系统/百度
- **Refresh Token**: `122.xxxxx(通过工具正确回调)`
- **Root folder path**: /网关管理系统/百度
- **Download API**: 官方 (Official)
- **Client ID**: `通过工具正确回调`
- **Client Secret**: `通过工具正确回调`
- **Custom crack ua**: `netdisk`
- **Upload Threads**: 3
- **Upload API**: `https://d.pcs.baidu.com`
- **Use dynamic upload api**: Enabled

**360 AI YunPan Storage Settings:**
- Auth Type: API Key / Token Authentication (Configured per official guidelines)

### Logs / 日志

[Baidu] req: [https://pan.baidu.com/rest/2.0/xpan/as] ,errno: 20016
[360yunpan] yunpan360.OpenAuthResp.Data: readObjectStart: expect { or n... errmsg: header error

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.