alist icon indicating copy to clipboard operation
alist copied to clipboard

v3.37.3版本-本地文件复制到115网盘报错: 请升级到最新版本: unexpected error

Open crtf1999 opened this issue 2 years ago • 32 comments

Please make sure of the following things

  • [X] I have read the documentation. 我已经阅读了文档。

  • [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 ,Dependencies or Operational). 我确定是AList的问题,而不是其他原因(例如网络,依赖或操作)。

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

AList Version / AList 版本

v3.37.3

Driver used / 使用的存储驱动

115

Describe the bug / 问题描述

  • 版本
xxx# ./alist version
Built At: 2024-09-16 17:54:05 +0000
Go Version: go1.22.4 linux/amd64
Author: Xhofe <[email protected]>
Commit ID: b6451451
Version: v3.37.3
WebVersion: 3.37.1
  • 问题 本来是在使用rclone把本地文件复制到115网盘(命令如下)但发现网速没有提上去(之前是100M/s)
rclone copy -vv alist:/local/aly/live/biliup/upload/live-荔吱/ alist:/115/temp_6844/download/2024-09-17/荔吱/ -u --no-traverse --progress --contimeout=1h --timeout=1h --cache-chunk-size 100M --transfers 3

然后试了使用rclone把115网盘文件复制到本地是可以跑到100M/s的 接着使用web操作把本地文件复制到115, 就看到了如下报错 请升级到最新版本: unexpected error DH68MCFJ9277TJ{ERU81J30

Reproduction / 复现链接

添加115存储,更新cookies.

Config / 配置

{
  "force": false,
  "site_url": "",
  "cdn": "",
  "jwt_secret": "lk49e1hyMEoDNoBH",
  "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": 5244,
    "https_port": -1,
    "force_https": false,
    "cert_file": "",
    "key_file": "",
    "unix_file": "",
    "unix_file_perm": ""
  },
  "temp_dir": "data/temp",
  "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": 0,
  "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": 5,
      "max_retry": 2,
      "task_persistant": true
    }
  },
  "cors": {
    "allow_origins": [
      "*"
    ],
    "allow_methods": [
      "*"
    ],
    "allow_headers": [
      "*"
    ]
  },
  "s3": {
    "enable": false,
    "port": 5246,
    "ssl": false
  }
}

Logs / 日志

^[[31mERRO^[[0m[2024-09-17 03:18:30] COPY /dav/local/aly/live/biliup/upload/live-荔吱/荔吱.2024-09-16 15_56_07.ing.flv unexpected error
github.com/SheltonZhu/115driver/pkg/driver.init
        <autogenerated>:1
runtime.doInit1
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:7176
runtime.doInit
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:7143
runtime.main
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/proc.go:253
runtime.goexit
        /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1695
请升级到最新版本
github.com/SheltonZhu/115driver/pkg/driver.GetErr
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/error.go:143
github.com/SheltonZhu/115driver/pkg/driver.(*UploadInitResp).Err
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/response.go:182
github.com/SheltonZhu/115driver/pkg/driver.CheckErr
        /home/runner/go/pkg/mod/github.com/!shelton!zhu/[email protected]/pkg/driver/error.go:154
github.com/alist-org/alist/v3/drivers/115.(*Pan115).rapidUpload
        /home/runner/work/alist/alist/drivers/115/util.go:201
github.com/alist-org/alist/v3/drivers/115.(*Pan115).Put
        /home/runner/work/alist/alist/drivers/115/driver.go:167
github.com/alist-org/alist/v3/internal/op.Put
        /home/runner/work/alist/alist/internal/op/fs.go:561
github.com/alist-org/alist/v3/internal/fs._copy
        /home/runner/work/alist/alist/internal/fs/copy.go:91
github.com/alist-org/alist/v3/internal/fs.Copy
        /home/runner/work/alist/alist/internal/fs/fs.go:73
github.com/alist-org/alist/v3/server/webdav.copyFiles
        /home/runner/work/alist/alist/server/webdav/file.go:59
github.com/alist-org/alist/v3/server/webdav.(*Handler).handleCopyMove
        /home/runner/work/alist/alist/server/webdav/webdav.go:477
github.com/alist-org/alist/v3/server/webdav.(*Handler).ServeHTTP
        /home/runner/work/alist/alist/server/webdav/webdav.go:70
github.com/alist-org/alist/v3/server.ServeWebDAV
        /home/runner/work/alist/alist/server/webdav.go:46
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server.WebDAVAuth
        /home/runner/work/alist/alist/server/webdav.go:113
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
        /home/runner/work/alist/alist/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next

crtf1999 avatar Sep 16 '24 19:09 crtf1999

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Sep 16 '24 19:09 welcome[bot]

+1

1604236395 avatar Sep 16 '24 22:09 1604236395

+1

KeithW0726 avatar Sep 16 '24 23:09 KeithW0726

115接口改了,昨天只是改了ua让115暂时可用

现在115能挂载吗?我的还是会报错

sucooer avatar Sep 17 '24 01:09 sucooer

仍然进不去,显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

sunrise1998 avatar Sep 17 '24 01:09 sunrise1998

我也显示同样错误 ‘failed get objs: failed to list objs: invalid character 'a' looking for beginning of value“

billzhuang avatar Sep 17 '24 01:09 billzhuang

mac v3.37.3
我也显示同样错误 ‘failed get objs: failed to list objs: invalid character 'a' looking for beginning of value“

flytutulee avatar Sep 17 '24 02:09 flytutulee

同样的问题,等等解决办法 111 222

twtmactt avatar Sep 17 '24 03:09 twtmactt

一样,继续坐等更新了

Katou-Kouseki avatar Sep 17 '24 03:09 Katou-Kouseki

快传挂了吧 ?

gitcook avatar Sep 17 '24 04:09 gitcook

仍然进不去,显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

情况一样

zyyds-0711 avatar Sep 17 '24 07:09 zyyds-0711

今天还是显示failed get objs: failed to list objs: invalid character 'a' looking for beginning of value

smoryan avatar Sep 17 '24 08:09 smoryan

~~研究完了,有点难绷~~


出现 请升级到最新版本:unexpected error 的原因:

目前alist中 115驱动所使用的接口库中提供的 ua 太老了 https://github.com/SheltonZhu/115driver/blob/8ace8be8e9e2403fa70cdd8e7fec9250ac4ac488/pkg/driver/consts.go#L5 image

而官方的版本已经到了 27.0.3.7,于是把 ua 改为 Mozilla/5.0 115Browser/27.0.3.7,上传正常

个人修改的地方 UserAgent 和 appVer(上传接口的传参) 以及 t := driver115.NowMilli() 代码位置


建议后续改为从接口动态获取版本号:官方接口

dgscyg avatar Sep 17 '24 08:09 dgscyg

ua和appVer都改27.0.3.7了,Milli也加上了,但是上传提示token invalid: sig invalid

pongfcnkl avatar Sep 17 '24 11:09 pongfcnkl

ua和appVer都改27.0.3.7了,Milli也加上了,但是上传提示token invalid: sig invalid

https://github.com/SheltonZhu/115driver/blob/main/pkg%2Fdriver%2Fupload.go#L283-L283

这里的改了吗?还有库里定义的 ua

dgscyg avatar Sep 17 '24 11:09 dgscyg

appletv上的还是不正常,有大佬可以指教一下吗

zyyds-0711 avatar Sep 17 '24 11:09 zyyds-0711

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

pongfcnkl avatar Sep 17 '24 12:09 pongfcnkl

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

替换后依旧报错,是姿势不对吗?

whistle003 avatar Sep 17 '24 14:09 whistle003

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

请问是用什么软件替换的?新字符串长度不是比原字符串更长吗?

x-guang avatar Sep 17 '24 14:09 x-guang

修复115上传的二进制下载 https://tmp.link/room/66e96fbe1bb7b

请问是用什么软件替换的?新字符串长度不是比原字符串更长吗?

finalshell直接传到/root/alist 下替换原二进制文件的

whistle003 avatar Sep 17 '24 14:09 whistle003