AlistGo / AlistGo/alist

123网盘上传文件时大概率报错

Abierto
#7,480 12 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Go
Estrellas
50.2k
Forks
7.9k
Merge medio
7 d 21 h
PR fusionados (30 d)
6

Descripción

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
我已经阅读了[文档](https://alist.nn.ci)。

- [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://alist.nn.ci/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://alist.nn.ci/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.39.1

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

123pan

### Describe the bug / 问题描述

如题,在将本地存储或者webdav存储的文件复制到123云盘时,大概率会出现http put报错,显示发送与接收内容长度不符合
![IMG_20241108_115834](https://github.com/user-attachments/assets/6d5c1990-fece-4497-b272-1ca86c9cc2a6)
在测试其他存储器例如pikpak和mega均无出现此问题,可排除由于本机网络原因导致

### Reproduction / 复现链接

任意大于5gb的文件,概率复现

### Config / 配置

{
"force": false,
"site_url": "",
"cdn": "",
"jwt_secret": "NpSikKRQX96cpu3h",
"token_expires_in": 48,
"database": {
"type": "sqlite3",
"host": "",
"port": 0,
"user": "",
"password": "",
"name": "",
"db_file": "data/data.db",
"table_prefix": "x_",
"ssl_mode": "",
"dsn": ""
},
"meilisearch": {
"host": "http://localhost:7700",
"api_key": "",
"index_prefix": ""
},
"scheme": {
"address": "0.0.0.0",
"http_port": 80,
"https_port": -1,
"force_https": false,
"cert_file": "",
"key_file": "",
"unix_file": "",
"unix_file_perm": ""
},
"temp_dir": "/mnt/data/bin",
"bleve_dir": "data/bleve",
"dist_dir": "",
"log": {
"enable": true,
"name": "data/log/log.log",
"max_size": 50,
"max_backups": 30,
"max_age": 28,
"compress": false
},
"delayed_start": 0,
"max_connections": 15,
"tls_insecure_skip_verify": true,
"tasks": {
"download": {
"workers": 5,
"max_retry": 1,
"task_persistant": true
},
"transfer": {
"workers": 5,
"max_retry": 2,
"task_persistant": true
},
"upload": {
"workers": 5,
"max_retry": 0,
"task_persistant": false
},
"copy": {
"workers": 3,
"max_retry": 10,
"task_persistant": true
}
},
"cors": {
"allow_origins": [
"*"
],
"allow_methods": [
"*"
],
"allow_headers": [
"*"
]
},
"s3": {
"enable": false,
"port": 5246,
"ssl": false
}

### Logs / 日志

![IMG_20241108_115834](https://github.com/user-attachments/assets/c5c35d1b-c59b-43fd-990d-8171766cf3b3)
日志:[GIN] 2024/11/07 - 15:09:36 | 200 | 81.085111ms | 171.94.255.195 | GET "/api/task/copy/undone"
DEBU[2024-11-07 15:09:38]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]}
[GIN] 2024/11/07 - 15:09:38 | 200 | 1.237354ms | 171.94.255.195 | GET "/api/task/copy/undone"
DEBU[2024-11-07 15:09:40]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]}
[GIN] 2024/11/07 - 15:09:40 | 200 | 2.368209ms | 171.94.255.195 | GET "/api/task/copy/undone"
DEBU[2024-11-07 15:09:42]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]}
[GIN] 2024/11/07 - 15:09:42 | 200 | 633.039碌s | 171.94.255.195 | GET "/api/task/copy/undone"
DEBU[2024-11-07 15:09:42]/home/runner/work/alist/alist/drivers/123/driver.go:222 github.com/alist-org/alist/v3/drivers/123.(*Pan123).Put() upload request res: {"code":0,"message":"ok","data":{"AccessKeyId":null,"SecretAccessKey":null,"SessionToken":null,"Expiration":null,"Key":"6cf32a22896334-0/6cf32a28ad82c40d42932511dd6a048f","Bucket":"123-143","FileId":370078923,"Reuse":false,"Info":null,"UploadId":"N2E0ZTQ4MzU2MS00YWI0LTkzOTQtZWM4ZTM4YzgyMWEzLjlmODgwY2EyLTc1ZWMtNDZmYS1iM2U2LxYTI3NmNjZDVlZQ","DownloadUrl":"","StorageNode":"m6","EndPoint":"https://m6.123624.com","UploadFileStatus":0,"SliceSize":"67108864"}}
DEBU[2024-11-07 15:09:44]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b292748f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727228205 Salt:NjptKcK5iyWiDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]}
[GIN] 2024/11/07 - 15:09:44 | 200 | 401.73 | 171.94.255.195 | GET "/api/task/copy/undone"
DEBU[2024-11-07 15:09:46]/home/runner/work/alist/alist/server/middlewares/auth.go:72 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:9333a36b29271577cd48f91c80989d336e7774b521118e34ff101e5660d50ca5 PwdTS:1727Salt:NjptKciDRuB Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:[]}
[GIN] 2024/11/07 - 15:09:46 | 200 | 92.845246ms | 171.94.255.195 | GET "/api/task/copy/undone"

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.