Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

123网盘挂载出现错误 json: cannot unmarshal string into Go struct field TokenResp.code of type int #2415

Closed
4 tasks done
ubnm opened this issue Nov 18, 2022 · 6 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ubnm
Copy link

ubnm commented Nov 18, 2022

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

用v3.4源代码自己修改过编译而成的dev
image

Driver used / 使用的存储驱动

123网盘

Describe the bug / 问题描述

image

image
问题如图,提示错误:Failed init storage: json: cannot unmarshal string into Go struct field TokenResp.code of type int
源代码修改过,但是一开始无影响,但是增加了多个123网盘挂载后就这样

解决办法是:卸载后重新安装,重新录入元信息等等全部,但是不知道此问题的形成原因,123网盘重置密码后依旧如此
问题估计:应该是data.db造成的问题,尝试过卸载重装后就没有问题,使用的也是编译过的二进制alist

Reproduction / 复现链接

Logs / 日志

[GIN] 2022/11/19 - 03:23:58 | 200 |     413.239µs |  16.115.218.112 | GET      "/api/admin/meta/list"
[GIN] 2022/11/19 - 03:24:00 | 200 |     262.671µs |  16.115.218.112 | GET      "/api/admin/meta/get?id=13"
[GIN] 2022/11/19 - 03:24:03 | 200 |     463.773µs |  16.115.218.112 | GET      "/api/admin/meta/list"
[GIN] 2022/11/19 - 03:24:04 | 200 |     263.009µs |  16.115.218.112 | GET      "/api/admin/meta/get?id=16"
[GIN] 2022/11/19 - 03:24:10 | 200 |    5.592461ms |  16.115.218.112 | POST     "/api/admin/meta/update"
[GIN] 2022/11/19 - 03:24:11 | 200 |      410.66µs |  16.115.218.112 | GET      "/api/admin/meta/list"
[GIN] 2022/11/19 - 03:24:12 | 200 |      445.69µs |  16.115.218.112 | GET      "/api/admin/storage/list"
[GIN] 2022/11/19 - 03:24:13 | 200 |    5.694989ms |  16.115.218.112 | POST     "/api/admin/storage/disable?id=12"
[GIN] 2022/11/19 - 03:24:14 | 200 |     473.437µs |  16.115.218.112 | GET      "/api/admin/storage/list"
�[31mERRO�[0m[2022-11-19 03:24:14] this storage have disabled                   
[GIN] 2022/11/19 - 03:24:14 | 200 |     331.031µs |  16.115.218.112 | POST     "/api/admin/storage/disable?id=12"
[GIN] 2022/11/19 - 03:24:15 | 200 |     426.718µs |  16.115.218.112 | GET      "/api/admin/storage/list"
[GIN] 2022/11/19 - 03:24:17 | 200 |     429.745µs |  16.115.218.112 | GET      "/api/admin/storage/list"
�[31mERRO�[0m[2022-11-19 03:24:18] failed load storage: failed init storage: json: cannot unmarshal string into Go struct field TokenResp.code of type int 
[GIN] 2022/11/19 - 03:24:18 | 200 |   78.613683ms |  16.115.218.112 | POST     "/api/admin/storage/enable?id=12"
[GIN] 2022/11/19 - 03:24:19 | 200 |     450.827µs |  16.115.218.112 | GET      "/api/admin/storage/list"
[GIN] 2022/11/19 - 03:24:21 | 200 |     422.069µs |  16.115.218.112 | GET      "/api/admin/storage/list"
[GIN] 2022/11/19 - 03:24:21 | 200 |      447.12µs |  16.115.218.112 | GET      "/api/admin/storage/list"
�[31mERRO�[0m[2022-11-19 03:24:24] json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594 
�[31mERRO�[0m[2022-11-19 03:24:24] failed list /======【资源库】======: json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594
failed get objs 
[GIN] 2022/11/19 - 03:24:24 | 200 |  132.032202ms |  16.115.218.112 | POST     "/api/fs/list"
[GIN] 2022/11/19 - 03:24:25 | 200 |     346.514µs |  16.115.218.112 | POST     "/api/fs/list"
�[31mERRO�[0m[2022-11-19 03:24:26] json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594 
�[31mERRO�[0m[2022-11-19 03:24:26] failed list /======【文档数据存储区】======: json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594
failed get objs 
[GIN] 2022/11/19 - 03:24:26 | 200 |  124.021851ms |  16.115.218.112 | POST     "/api/fs/list"
[GIN] 2022/11/19 - 03:24:27 | 200 |     165.232µs |  16.115.218.112 | POST     "/api/fs/list"
�[31mERRO�[0m[2022-11-19 03:24:28] json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594 
�[31mERRO�[0m[2022-11-19 03:24:28] failed list /======【登入后可查看】======: json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594
failed get objs 
[GIN] 2022/11/19 - 03:24:28 | 200 |  121.878534ms |  16.115.218.112 | POST     "/api/fs/list"
[GIN] 2022/11/19 - 03:24:29 | 200 |     170.153µs |  16.115.218.112 | POST     "/api/fs/list"
�[31mERRO�[0m[2022-11-19 03:24:29] json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594 
�[31mERRO�[0m[2022-11-19 03:24:29] failed list /======【犀牛哥数据中心】======: json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594
failed get objs 
[GIN] 2022/11/19 - 03:24:29 | 200 |   121.64613ms |  16.115.218.112 | POST     "/api/fs/list"
[GIN] 2022/11/19 - 03:24:30 | 200 |     156.522µs |  16.115.218.112 | POST     "/api/fs/list"
�[31mERRO�[0m[2022-11-19 03:24:31] json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594 
�[31mERRO�[0m[2022-11-19 03:24:31] failed list /======【资源库】======: json: cannot unmarshal string into Go struct field TokenResp.code of type int
failed to list objs
github.com/alist-org/alist/v3/internal/op.List.func1
	/root/alist/internal/op/fs.go:59
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2
	/root/alist/pkg/singleflight/singleflight.go:193
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall
	/root/alist/pkg/singleflight/singleflight.go:195
github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do
	/root/alist/pkg/singleflight/singleflight.go:108
github.com/alist-org/alist/v3/internal/op.List
	/root/alist/internal/op/fs.go:56
github.com/alist-org/alist/v3/internal/fs.list
	/root/alist/internal/fs/list.go:27
github.com/alist-org/alist/v3/internal/fs.List
	/root/alist/internal/fs/fs.go:17
github.com/alist-org/alist/v3/server/handles.FsList
	/root/alist/server/handles/fsread.go:77
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.Auth
	/root/alist/server/middlewares/auth.go:55
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/alist-org/alist/v3/server/middlewares.StoragesLoaded
	/root/alist/server/middlewares/check.go:11
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240
github.com/gin-gonic/gin.(*Context).Next
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/root/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572
net/http.serverHandler.ServeHTTP
	/usr/lib/go-1.19/src/net/http/server.go:2947
net/http.(*conn).serve
	/usr/lib/go-1.19/src/net/http/server.go:1991
runtime.goexit
	/usr/lib/go-1.19/src/runtime/asm_amd64.s:1594
failed get objs
@ubnm ubnm added the bug Something isn't working label Nov 18, 2022
@ubnm ubnm changed the title 123网盘挂在出现错误 123网盘挂载出现错误 json: cannot unmarshal string into Go struct field TokenResp.code of type int Nov 18, 2022
@xhofe
Copy link
Member

xhofe commented Nov 19, 2022

123自己的限制 无解。

@xhofe xhofe added the wontfix This will not be worked on label Nov 19, 2022
@github-actions
Copy link

Hello @ZACHARRY, this issue will not be worked on and will be closed.
你好 @ZACHARRY,这不会被处理,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2022
@ubnm
Copy link
Author

ubnm commented Nov 19, 2022

123自己的限制无解。

请大大再次确认一下,如果是123的限制,但是我卸载重装后,重新添加123却运行完整,这应该是某个bug

@ubnm
Copy link
Author

ubnm commented Nov 19, 2022

123自己的限制 无解。

Failed create storage in database: UNIQUE constraint failed: x_storages.mount_path

@xhofe
Copy link
Member

xhofe commented Nov 19, 2022

123自己的限制 无解。

Failed create storage in database: UNIQUE constraint failed: x_storages.mount_path

这个是你的挂载路径重复了。

json: cannot unmarshal string into Go struct field TokenResp.code of type int

这个是123的api限制,请求稍微过快就会触发这个错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants