Skip to content

[BUG] 天翼云盘报错 #412

@Rcrwrate

Description

@Rcrwrate

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

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

  • I'm sure it's due to OpenList and not something else(such as Network ,Dependencies or Operational).
    我确定是OpenList的问题,而不是其他原因(例如网络依赖操作)。

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

OpenList Version / OpenList 版本

v4.0.3

Driver used / 使用的存储驱动

天翼云盘客户端

Describe the bug / 问题描述

天翼云盘报错:
ERRO[2025-06-27 09:55:50] failed init storage: res_code: InvalidArgument ,res_msg: params is null

AlistGo/alist#9169

Reproduction / 复现链接

任意挂载一个天翼云盘客户端,仅启用禁用OCR,个人云

Config / 配置

OpenList默认配置

驱动配置

{
    "id": 20,
    "mount_path": "/189",
    "order": 0,
    "driver": "189CloudPC",
    "cache_expiration": 30,
    "status": "res_code: InvalidArgument ,res_msg: params is null",
    "addition": "{\"username\":\"*****\",\"password\":\"*****!\",\"validate_code\":\"\",\"root_folder_id\":\"-11\",\"order_by\":\"filename\",\"order_direction\":\"asc\",\"type\":\"personal\",\"family_id\":\"\",\"upload_method\":\"stream\",\"upload_thread\":\"3\",\"family_transfer\":false,\"rapid_upload\":false,\"no_use_ocr\":true}",
    "remark": "",
    "modified": "2025-06-27T09:48:34.47219519+08:00",
    "disabled": false,
    "disable_index": false,
    "enable_sign": false,
    "order_by": "",
    "order_direction": "",
    "extract_folder": "",
    "web_proxy": false,
    "webdav_policy": "302_redirect",
    "proxy_range": false,
    "down_proxy_url": ""
}

Logs / 日志

[GIN] 2025/06/27 - 09:59:43 | 200 |     386.645µs |       127.0.0.1 | GET      "/api/admin/driver/info?driver=189CloudPC"
DEBU[2025-06-27 09:59:48]/home/runner/work/OpenList/OpenList/server/middlewares/auth.go:72 github.com/OpenListTeam/OpenList/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:974999d446acb07e44271bb15bc531d16963d089b7a121a46e426bdb8518f3eb PwdTS:1727334033 Salt:FPU9Mih4afIQB4gD Password: BasePath:/ Role:2 Disabled:false Permission:13311 OtpSecret: SsoID: Authn:[]} 

2025/06/27 09:59:48 /home/runner/work/OpenList/OpenList/internal/db/storage.go:48
[0.230ms] [rows:1] SELECT * FROM `x_storages` WHERE `x_storages`.`id` = 20 ORDER BY `x_storages`.`id` LIMIT 1

2025/06/27 09:59:48 /home/runner/work/OpenList/OpenList/internal/db/storage.go:22
[0.202ms] [rows:1] UPDATE `x_storages` SET `mount_path`="/189",`order`=0,`driver`="189CloudPC",`cache_expiration`=30,`status`="res_code: InvalidArgument ,res_msg: params is null",`addition`="{""username"":""***"",""password"":""***"",""validate_code"":"""",""root_folder_id"":""-11"",""order_by"":""filename"",""order_direction"":""asc"",""type"":""personal"",""family_id"":"""",""upload_method"":""stream"",""upload_thread"":""3"",""family_transfer"":false,""rapid_upload"":false,""no_use_ocr"":true}",`remark`="",`modified`="2025-06-27 09:59:48.001",`disabled`=false,`disable_index`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`proxy_range`=false,`down_proxy_url`="" WHERE `id` = 20

2025/06/27 09:59:48 /home/runner/work/OpenList/OpenList/internal/db/storage.go:22
[0.293ms] [rows:1] UPDATE `x_storages` SET `mount_path`="/189",`order`=0,`driver`="189CloudPC",`cache_expiration`=30,`status`="res_code: InvalidArgument ,res_msg: params is null",`addition`="{""username"":""***"",""password"":""***"",""validate_code"":"""",""root_folder_id"":""-11"",""order_by"":""filename"",""order_direction"":""asc"",""type"":""personal"",""family_id"":"""",""upload_method"":""stream"",""upload_thread"":""3"",""family_transfer"":false,""rapid_upload"":false,""no_use_ocr"":true}",`remark`="",`modified`="2025-06-27 09:59:48.001",`disabled`=false,`disable_index`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`proxy_range`=false,`down_proxy_url`="" WHERE `id` = 20
DEBU[2025-06-27 09:59:48]/home/runner/work/OpenList/OpenList/internal/op/storage.go:230 github.com/OpenListTeam/OpenList/internal/op.UpdateStorage() storage &{Storage:{ID:20 MountPath:/189 Order:0 Driver:189CloudPC CacheExpiration:30 Status:res_code: InvalidArgument ,res_msg: params is null Addition:{"username":"***","password":"***","validate_code":"","root_folder_id":"-11","order_by":"filename","order_direction":"asc","type":"personal","family_id":"","upload_method":"stream","upload_thread":"3","family_transfer":false,"rapid_upload":false,"no_use_ocr":true} Remark: Modified:2025-06-27 09:59:48.001533484 +0800 CST m=+17.162186108 Disabled:false DisableIndex:false EnableSign:false Sort:{OrderBy: OrderDirection: ExtractFolder:} Proxy:{WebProxy:false WebdavPolicy:302_redirect ProxyRange:false DownProxyUrl:}} Addition:{Username:*** Password:*** VCode: RootID:{RootFolderID:-11} OrderBy:filename OrderDirection:asc Type:personal FamilyID: UploadMethod:stream UploadThread:3 FamilyTransfer:false RapidUpload:false NoUseOcr:true} identity:adf774e789bb903fccce4e1e09fade07 client:0xc000026f08 loginParam:0xc0010a13b0 tokenInfo:<nil> uploadThread:3 familyTransferFolder:<nil> cleanFamilyTransferFile:<nil> storageConfig:{Name:189CloudPC LocalSort:false OnlyLocal:false OnlyProxy:false NoCache:false NoUpload:false NeedMs:false DefaultRoot:-11 CheckStatus:true Alert: NoOverwriteUpload:false ProxyRangeOption:false} ref:<nil>} is update 
ERRO[2025-06-27 09:59:48]/home/runner/work/OpenList/OpenList/server/common/common.go:45 github.com/OpenListTeam/OpenList/server/common.ErrorWithDataResp() res_code: InvalidArgument ,res_msg: params is null
failed init storage
github.com/OpenListTeam/OpenList/internal/op.initStorage
        /home/runner/work/OpenList/OpenList/internal/op/storage.go:139
github.com/OpenListTeam/OpenList/internal/op.UpdateStorage
        /home/runner/work/OpenList/OpenList/internal/op/storage.go:228
github.com/OpenListTeam/OpenList/server/handles.UpdateStorage
        /home/runner/work/OpenList/OpenList/server/handles/storage.go:58
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/OpenListTeam/OpenList/server/middlewares.AuthAdmin
        /home/runner/work/OpenList/OpenList/server/middlewares/auth.go:146
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/OpenListTeam/OpenList/server/middlewares.Auth
        /home/runner/work/OpenList/OpenList/server/middlewares/auth.go:73
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/OpenListTeam/OpenList/server/middlewares.StoragesLoaded
        /home/runner/work/OpenList/OpenList/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589
net/http.serverHandler.ServeHTTP
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:3210
net/http.(*conn).serve
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/net/http/server.go:2092
runtime.goexit
        /home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700 
[GIN] 2025/06/27 - 09:59:48 | 200 |  354.089213ms |       127.0.0.1 | POST     "/api/admin/storage/update"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions