Skip to content

添加百度云盘提示 -6 错误码,点击禁用再启用即可恢复 #5262

@anwen-anyi

Description

@anwen-anyi

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 AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

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

AList Version / AList 版本

v3.27.0

Driver used / 使用的存储驱动

百度云盘

Describe the bug / 问题描述

添加百度云盘驱动时,提示如下错误:

req: [https://pan.baidu.com/rest/2.0/xpan/nas] ,errno: -6, refer to https://pan.baidu.com/union/doc/

#第二条日志来自--debug 写入的日志
�[37mDEBU�[0m[2023-09-22 15:42:02]/source/drivers/baidu_netdisk/util.go:70 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() [baidu_netdisk] req: https://pan.baidu.com/rest/2.0/xpan/nas, resp: {"errmsg":"Invalid Bduss","errno":-6,"request_id":"373471031330729590"} 

N4 ~4S GS`}%V$ D@2DGRE1

提示错误后直接点击左侧侧边栏的存储选项,将新添加的百度云盘驱动禁用,再启用即可恢复,如下:

fdsfsdrwew32

日志中的refresh_tokenAccessToken已处理,都一样,但是和一开始 添加的refresh_token(红色框)不同,不同可能是因为保存后更新了,新的refresh_token是在抛出错误日志后更新的,然后点击禁用再启用就可以了

下图中红色为刚获取好的refresh_token填写进去,然后点击保存后就抛出了错误(紫色框),然后后面就自动刷新了似乎,这里还未进行禁用存储,因为已经刷新了所以我后面点击禁用再启用就可以恢复正常了(我猜的)
image

更详细的日志在下方提供了。

也可能缺少AccessToken参数,我看百度错误码提示里面写 access_token 是否有效,在日志刚添加存储时并没有看到AccessToken参数
image

Reproduction / 复现链接

No Url

Config / 配置

No Config

Logs / 日志

Log

完整日志下载.log

�[37mDEBU�[0m[2023-09-22 15:41:26]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:41:26 | 200 |      1.0001ms |       127.0.0.1 | GET      "/api/admin/driver/list"
�[37mDEBU�[0m[2023-09-22 15:42:02]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 

2023/09/22 15:42:02 �[32m/source/internal/db/storage.go:17
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m INSERT INTO `x_storages` (`mount_path`,`order`,`driver`,`cache_expiration`,`status`,`addition`,`remark`,`modified`,`disabled`,`enable_sign`,`order_by`,`order_direction`,`extract_folder`,`web_proxy`,`webdav_policy`,`down_proxy_url`) VALUES ("/百度测试",0,"BaiduNetdisk",30,"","{\"refresh_token\":\"122.6a874xxxxx54b8735e.YmJXX72KxxxxxxXH4p4jH7gFwoiQx.0xR4uA\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}","","2023-09-22 15:42:02.256",false,false,"","","",false,"302_redirect","") RETURNING `id`
�[37mDEBU�[0m[2023-09-22 15:42:02]/source/drivers/baidu_netdisk/util.go:70 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() [baidu_netdisk] req: https://pan.baidu.com/rest/2.0/xpan/nas, resp: {"errmsg":"Invalid Bduss","errno":-6,"request_id":"373471031330729590"} 
�[36mINFO�[0m[2023-09-22 15:42:02]/source/drivers/baidu_netdisk/util.go:74 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() refreshing baidu_netdisk token.              

2023/09/22 15:42:02 �[32m/source/internal/db/storage.go:22
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m UPDATE `x_storages` SET `mount_path`="/百度测试",`order`=0,`driver`="BaiduNetdisk",`cache_expiration`=30,`status`="",`addition`="{\"refresh_token\":\"122.abcacbacbacb.defdefdefdefdef.ggmmkkll\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"AccessToken\":\"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}",`remark`="",`modified`="2023-09-22 15:42:02.256",`disabled`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`down_proxy_url`="" WHERE `id` = 1
�[37mDEBU�[0m[2023-09-22 15:42:02]/source/drivers/baidu_netdisk/driver.go:56 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).Init() [baidu] get uinfo:                           

2023/09/22 15:42:02 �[32m/source/internal/db/storage.go:22
�[0m�[33m[1.000ms] �[34;1m[rows:1]�[0m UPDATE `x_storages` SET `mount_path`="/百度测试",`order`=0,`driver`="BaiduNetdisk",`cache_expiration`=30,`status`="req: [https://pan.baidu.com/rest/2.0/xpan/nas] ,errno: -6, refer to https://pan.baidu.com/union/doc/",`addition`="{\"refresh_token\":\"122.abcacbacbacb.defdefdefdefdef.ggmmkkll\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"AccessToken\":\"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}",`remark`="",`modified`="2023-09-22 15:42:02.256",`disabled`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`down_proxy_url`="" WHERE `id` = 1
�[31mERRO�[0m[2023-09-22 15:42:02]/source/server/common/common.go:43 github.com/alist-org/alist/v3/server/common.ErrorWithDataResp() req: [https://pan.baidu.com/rest/2.0/xpan/nas] ,errno: -6, refer to https://pan.baidu.com/union/doc/
failed init storage
github.com/alist-org/alist/v3/internal/op.initStorage
	/source/internal/op/storage.go:99
github.com/alist-org/alist/v3/internal/op.CreateStorage
	/source/internal/op/storage.go:60
github.com/alist-org/alist/v3/server/handles.CreateStorage
	/source/server/handles/storage.go:41
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.AuthAdmin
	/source/server/middlewares/auth.go:124
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.Auth
	/source/server/middlewares/auth.go:67
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/source/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:2938
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2009
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1650
failed init storage but storage is already created
github.com/alist-org/alist/v3/internal/op.CreateStorage
	/source/internal/op/storage.go:63
github.com/alist-org/alist/v3/server/handles.CreateStorage
	/source/server/handles/storage.go:41
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.AuthAdmin
	/source/server/middlewares/auth.go:124
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.Auth
	/source/server/middlewares/auth.go:67
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/source/server/middlewares/check.go:14
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:2938
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:2009
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1650 
[GIN] 2023/09/22 - 15:42:02 | 200 |    445.0254ms |       127.0.0.1 | POST     "/api/admin/storage/create"
�[37mDEBU�[0m[2023-09-22 15:42:03]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 

2023/09/22 15:42:03 �[32m/source/internal/db/storage.go:48
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` WHERE `x_storages`.`id` = 1 ORDER BY `x_storages`.`id` LIMIT 1
[GIN] 2023/09/22 - 15:42:03 | 200 |           1ms |       127.0.0.1 | GET      "/api/admin/storage/get?id=1"
�[37mDEBU�[0m[2023-09-22 15:42:03]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:42:03 | 200 |      1.0001ms |       127.0.0.1 | GET      "/api/admin/driver/info?driver=BaiduNetdisk"
[GIN] 2023/09/22 - 15:42:20 | 200 |            0s |       127.0.0.1 | GET      "/@manage/indexes"
�[37mDEBU�[0m[2023-09-22 15:42:21]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:42:21 | 200 |            0s |       127.0.0.1 | GET      "/api/admin/driver/names"
�[37mDEBU�[0m[2023-09-22 15:42:21]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
�[37mDEBU�[0m[2023-09-22 15:42:21]/source/server/handles/storage.go:23 github.com/alist-org/alist/v3/server/handles.ListStorages() {Page:1 PerPage:9223372036854775807}         

2023/09/22 15:42:21 �[32m/source/internal/db/storage.go:34
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT count(*) FROM `x_storages`

2023/09/22 15:42:21 �[32m/source/internal/db/storage.go:38
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` ORDER BY `order` LIMIT 9223372036854775807
[GIN] 2023/09/22 - 15:42:21 | 200 |      1.0001ms |       127.0.0.1 | GET      "/api/admin/storage/list"
�[37mDEBU�[0m[2023-09-22 15:43:13]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 

2023/09/22 15:43:13 �[32m/source/internal/db/storage.go:48
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` WHERE `x_storages`.`id` = 1 ORDER BY `x_storages`.`id` LIMIT 1

2023/09/22 15:43:13 �[32m/source/internal/db/storage.go:22
�[0m�[33m[1.000ms] �[34;1m[rows:1]�[0m UPDATE `x_storages` SET `mount_path`="/百度测试",`order`=0,`driver`="BaiduNetdisk",`cache_expiration`=30,`status`="disabled",`addition`="{\"refresh_token\":\"122.abcacbacbacb.defdefdefdefdef.ggmmkkll\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"AccessToken\":\"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}",`remark`="",`modified`="2023-09-22 15:42:02.256",`disabled`=true,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`down_proxy_url`="" WHERE `id` = 1
[GIN] 2023/09/22 - 15:43:13 | 200 |      1.0001ms |       127.0.0.1 | POST     "/api/admin/storage/disable?id=1"
�[37mDEBU�[0m[2023-09-22 15:43:13]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
�[37mDEBU�[0m[2023-09-22 15:43:13]/source/server/handles/storage.go:23 github.com/alist-org/alist/v3/server/handles.ListStorages() {Page:1 PerPage:9223372036854775807}         

2023/09/22 15:43:13 �[32m/source/internal/db/storage.go:34
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT count(*) FROM `x_storages`

2023/09/22 15:43:13 �[32m/source/internal/db/storage.go:38
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` ORDER BY `order` LIMIT 9223372036854775807
[GIN] 2023/09/22 - 15:43:13 | 200 |      1.0001ms |       127.0.0.1 | GET      "/api/admin/storage/list"
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 

2023/09/22 15:43:15 �[32m/source/internal/db/storage.go:48
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` WHERE `x_storages`.`id` = 1 ORDER BY `x_storages`.`id` LIMIT 1

2023/09/22 15:43:15 �[32m/source/internal/db/storage.go:22
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m UPDATE `x_storages` SET `mount_path`="/百度测试",`order`=0,`driver`="BaiduNetdisk",`cache_expiration`=30,`status`="disabled",`addition`="{\"refresh_token\":\"122.abcacbacbacb.defdefdefdefdef.ggmmkkll\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"AccessToken\":\"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}",`remark`="",`modified`="2023-09-22 15:42:02.256",`disabled`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`down_proxy_url`="" WHERE `id` = 1
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/drivers/baidu_netdisk/util.go:70 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() [baidu_netdisk] req: https://pan.baidu.com/rest/2.0/xpan/nas, resp: {"avatar_url":"https://dss0.bdstatic.com/7Ls0a8Sm1A5BphGlnYG/sys/portrait/item/netdisk.1.7c4e134e.0wxXHYIu7k2Bn5nQzbJUxw.jpg","baidu_name":"安稳______","errmsg":"succ","errno":0,"netdisk_name":"","request_id":"373490547657611329","uk":3427735176,"vip_type":2} 
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/drivers/baidu_netdisk/driver.go:56 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).Init() [baidu] get uinfo: {"avatar_url":"https://dss0.bdstatic.com/7Ls0a8Sm1A5BphGlnYG/sys/portrait/item/netdisk.1.7c4e134e.0wxXHYIu7k2Bn5nQzbJUxw.jpg","baidu_name":"安稳______","errmsg":"succ","errno":0,"netdisk_name":"","request_id":"373490547657611329","uk":3427735176,"vip_type":2} 

2023/09/22 15:43:15 �[32m/source/internal/db/storage.go:22
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m UPDATE `x_storages` SET `mount_path`="/百度测试",`order`=0,`driver`="BaiduNetdisk",`cache_expiration`=30,`status`="work",`addition`="{\"refresh_token\":\"122.abcacbacbacb.defdefdefdefdef.ggmmkkll\",\"root_folder_path\":\"/\",\"order_by\":\"name\",\"order_direction\":\"asc\",\"download_api\":\"official\",\"client_id\":\"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v\",\"client_secret\":\"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG\",\"custom_crack_ua\":\"netdisk\",\"AccessToken\":\"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll\",\"upload_thread\":\"3\",\"upload_api\":\"https://d.pcs.baidu.com\"}",`remark`="",`modified`="2023-09-22 15:42:02.256",`disabled`=false,`enable_sign`=false,`order_by`="",`order_direction`="",`extract_folder`="",`web_proxy`=false,`webdav_policy`="302_redirect",`down_proxy_url`="" WHERE `id` = 1
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/internal/op/storage.go:82 github.com/alist-org/alist/v3/internal/op.LoadStorage() storage &{Storage:{ID:1 MountPath:/百度测试 Order:0 Driver:BaiduNetdisk CacheExpiration:30 Status:work Addition:{"refresh_token":"122.abcacbacbacb.defdefdefdefdef.ggmmkkll","root_folder_path":"/","order_by":"name","order_direction":"asc","download_api":"official","client_id":"iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v","client_secret":"jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG","custom_crack_ua":"netdisk","AccessToken":"122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll","upload_thread":"3","upload_api":"https://d.pcs.baidu.com"} Remark: Modified:2023-09-22 15:42:02.2569917 +0800 +0800 Disabled:false EnableSign:false Sort:{OrderBy: OrderDirection: ExtractFolder:} Proxy:{WebProxy:false WebdavPolicy:302_redirect DownProxyUrl:}} Addition:{RefreshToken:122.abcacbacbacb.defdefdefdefdef.ggmmkkll RootPath:{RootFolderPath:/} OrderBy:name OrderDirection:asc DownloadAPI:official ClientID:iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v ClientSecret:jXiFMOPVPCWlO2M5CwWQzffpNPaGTRBG CustomCrackUA:netdisk AccessToken:122.abcsssssssdacbxxxacbacb.dedagfdefxxxdefdefgsdfsdfdef.ggmxxxmkkll UploadThread:3 UploadAPI:https://d.pcs.baidu.com} uploadThread:3} is created 
[GIN] 2023/09/22 - 15:43:15 | 200 |    666.0381ms |       127.0.0.1 | POST     "/api/admin/storage/enable?id=1"
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
�[37mDEBU�[0m[2023-09-22 15:43:15]/source/server/handles/storage.go:23 github.com/alist-org/alist/v3/server/handles.ListStorages() {Page:1 PerPage:9223372036854775807}         

2023/09/22 15:43:15 �[32m/source/internal/db/storage.go:34
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT count(*) FROM `x_storages`

2023/09/22 15:43:15 �[32m/source/internal/db/storage.go:38
�[0m�[33m[0.000ms] �[34;1m[rows:1]�[0m SELECT * FROM `x_storages` ORDER BY `order` LIMIT 9223372036854775807
[GIN] 2023/09/22 - 15:43:15 | 200 |            0s |       127.0.0.1 | GET      "/api/admin/storage/list"
[GIN] 2023/09/22 - 15:43:28 | 200 |      1.0001ms |       127.0.0.1 | GET      "/api/public/settings"
�[37mDEBU�[0m[2023-09-22 15:43:29]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:43:29 | 200 |           1ms |       127.0.0.1 | GET      "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/api/me"
�[37mDEBU�[0m[2023-09-22 15:43:29]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | POST     "/api/fs/get"
�[37mDEBU�[0m[2023-09-22 15:43:29]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | POST     "/api/fs/list"
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | GET      "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/assets/Folder.b511ba9e.css"
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | GET      "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/assets/Paginator.c74a6600.js"
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | GET      "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/assets/icon.74293817.js"
[GIN] 2023/09/22 - 15:43:29 | 200 |      5.0003ms |       127.0.0.1 | GET      "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/assets/Folder.e9418bf6.js"
[GIN] 2023/09/22 - 15:43:29 | 200 |            0s |       127.0.0.1 | GET      "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/assets/List.4ea74d6c.js"
[GIN] 2023/09/22 - 15:43:30 | 200 |            0s |       127.0.0.1 | GET      "/百度测试"
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/server/middlewares/auth.go:66 github.com/alist-org/alist/v3/server/middlewares.Auth() use login token: &{ID:1 Username:admin PwdHash:f19e8d74ff221641dd19a0b756ef262e3ef8d3e92964f37f81c0da8dd7fb7001 Salt:ZDFFmQI4TuxTQK2w Password: BasePath:/ Role:2 Disabled:false Permission:0 OtpSecret: SsoID: Authn:} 

2023/09/22 15:43:31 �[32m/source/internal/db/meta.go:10
�[0m�[33m[0.000ms] �[34;1m[rows:0]�[0m SELECT * FROM `x_meta` WHERE `x_meta`.`path` = "/百度测试" ORDER BY `x_meta`.`id` LIMIT 1
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage:  /百度测试                          
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/fs.go:100 github.com/alist-org/alist/v3/internal/op.List() op.List /                                    
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/fs.go:159 github.com/alist-org/alist/v3/internal/op.Get() op.Get /                                     
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/fs.go:112 github.com/alist-org/alist/v3/internal/op.List() list dir: &{ID: Path:/ Name:root Size:0 Modified:2023-09-22 15:42:02.2569917 +0800 +0800 Ctime:0001-01-01 00:00:00 +0000 UTC IsFolder:true HashInfo:null} 
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/drivers/baidu_netdisk/util.go:70 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() [baidu_netdisk] req: https://pan.baidu.com/rest/2.0/xpan/file, resp: {"errno":0,"guid_info":"","list":[{"tkbind_id":0,"server_mtime":1693995015,"category":6,"real_category":"","fs_id":792516521796955,"dir_empty":0,"oper_id":3427735176,"server_ctime":1688805873,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1688805872,"size":0,"isdir":1,"share":0,"pl":2,"from_type":0,"local_ctime":1688805872,"path":"\/AList\u6d4b\u8bd5","empty":0,"server_atime":0,"server_filename":"AList\u6d4b\u8bd5","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1684113768,"category":6,"real_category":"","fs_id":383713046384396,"dir_empty":0,"oper_id":0,"server_ctime":1463493714,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1463493714,"size":0,"isdir":1,"share":0,"pl":0,"from_type":0,"local_ctime":1463493714,"path":"\/apps","empty":0,"server_atime":0,"server_filename":"apps","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1688805662,"category":6,"real_category":"","fs_id":265683841272702,"dir_empty":0,"oper_id":3427735176,"server_ctime":1656075003,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1656075003,"size":0,"isdir":1,"share":0,"pl":2,"from_type":0,"local_ctime":1656075003,"path":"\/\u5b89\u7a33","empty":0,"server_atime":0,"server_filename":"\u5b89\u7a33","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1695205544,"category":6,"real_category":"","fs_id":690445536758090,"dir_empty":0,"oper_id":3427735176,"server_ctime":1656075401,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1656075401,"size":0,"isdir":1,"share":0,"pl":1,"from_type":0,"local_ctime":1656075401,"path":"\/\u72ec\u6728","empty":0,"server_atime":0,"server_filename":"\u72ec\u6728","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1676197844,"category":6,"real_category":"","fs_id":434572907959676,"dir_empty":1,"oper_id":0,"server_ctime":1656552491,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1656552491,"size":0,"isdir":1,"share":0,"pl":0,"from_type":0,"local_ctime":1656552491,"path":"\/\u6765\u81ea\uff1a\u767e\u5ea6\u6587\u5e93","empty":0,"server_atime":0,"server_filename":"\u6765\u81ea\uff1a\u767e\u5ea6\u6587\u5e93","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1688807528,"category":6,"real_category":"","fs_id":986785620971227,"dir_empty":0,"oper_id":0,"server_ctime":1688807528,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1688807528,"size":0,"isdir":1,"share":0,"pl":2,"from_type":0,"local_ctime":1688807528,"path":"\/\u6765\u81ea\uff1a\u6536\u96c6\u6587\u4ef6","empty":0,"server_atime":0,"server_filename":"\u6765\u81ea\uff1a\u6536\u96c6\u6587\u4ef6","owner_id":0,"unlist":0},{"tkbind_id":0,"server_mtime":1694595581,"category":6,"real_category":"","fs_id":575170870250042,"dir_empty":1,"oper_id":0,"server_ctime":1693671449,"extent_tinyint7":0,"wpfile":0,"owner_type":0,"local_mtime":1693671449,"size":0,"isdir":1,"share":0,"pl":1,"from_type":0,"local_ctime":1693671449,"path":"\/\u6211\u7684\u8d44\u6e90","empty":0,"server_atime":0,"server_filename":"\u6211\u7684\u8d44\u6e90","owner_id":0,"unlist":0},{"tkbind_id":0,"owner_type":0,"category":5,"real_category":"pptx\/xlsx\/docx\/zip","fs_id":160201496561270,"md5":"d82fd3bcak5e0012fde66106d8a8339f","oper_id":3427735176,"server_ctime":1693114142,"extent_tinyint7":0,"wpfile":0,"local_mtime":1691586966,"size":133173085,"from_type":0,"pl":1,"share":0,"server_atime":0,"path":"\/ai\u8f6c\u6f2b\u753b2.apk","local_ctime":1691586966,"server_mtime":1693114142,"server_filename":"ai\u8f6c\u6f2b\u753b2.apk","owner_id":0,"unlist":0,"isdir":0}],"request_id":373494858694123516,"guid":0} 
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/drivers/baidu_netdisk/util.go:70 github.com/alist-org/alist/v3/drivers/baidu_netdisk.(*BaiduNetdisk).request.func1() [baidu_netdisk] req: https://pan.baidu.com/rest/2.0/xpan/file, resp: {"errno":0,"guid_info":"","list":[],"request_id":373494933931681164,"guid":0} 
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/fs.go:144 github.com/alist-org/alist/v3/internal/op.List.func1() set cache: /百度测试 => [0xc00047ee60 0xc00047ee80 0xc00047eec0 0xc00047eee0 0xc00047ef20 0xc00047ef40 0xc00047ef80 0xc00047efe0] 
�[37mDEBU�[0m[2023-09-22 15:43:31]/source/internal/op/path.go:25 github.com/alist-org/alist/v3/internal/op.GetStorageAndActualPath() use storage:  /百度测试                          
[GIN] 2023/09/22 - 15:43:31 | 200 |    473.0271ms |       127.0.0.1 | POST     "/api/fs/list"
[GIN] 2023/09/22 - 15:43:36 | 200 |            0s |       127.0.0.1 | GET      "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/百度测试/我的资源"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions