123网盘上传文件时大概率报错
- 主要语言
- Go
- 星标
- 50.2k
- 派生
- 7.9k
- 平均合并
- 7 天 21 小时
- 30 天内合并 PR
- 6
描述
### 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报错,显示发送与接收内容长度不符合

在测试其他存储器例如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 / 日志

日志:[GIN] 2024/11/07 - 15:09:36 | 200 | 81.085111ms | 171.94.255.195 | GET "/api/task/copy/undone"
[37mDEBU[0m[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"
[37mDEBU[0m[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"
[37mDEBU[0m[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"
[37mDEBU[0m[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"}}
[37mDEBU[0m[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"
[37mDEBU[0m[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"
贡献指南
评估
这个 Issue 还没有评估数据。