AlistGo / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
44.18k stars 5.73k forks source link

OneDrive App报错:failed get objs: failed to list objs: Call was made to the default drive, which is not supported for apponly tokens. #7238

Open StackExplode opened 2 months ago

StackExplode commented 2 months ago

Please make sure of the following things

AList Version / AList 版本

3.37.3

Driver used / 使用的存储驱动

OneDrive App

Describe the bug / 问题描述

按照官方文档设置了OneDrive App,每一步都按照文档的选项卡子页顺序设置,没有任何报错,但最终试图访问目录时报错: failed get objs: failed to list objs: Call was made to the default drive, which is not supported for apponly tokens.

Reproduction / 复现链接

Config / 配置

image

Logs / 日志

请展开:

``` [GIN] 2024/09/20 - 16:46:02 | 200 | 388.157958ms | 112.21.48.119 | POST "/api/fs/list" [GIN] 2024/09/20 - 16:51:19 | 200 | 137.977µs | 112.21.48.119 | GET "/Jennings OneDrive" [GIN] 2024/09/20 - 16:51:19 | 200 | 193.948µs | 112.21.48.119 | GET "/api/public/settings" [GIN] 2024/09/20 - 16:51:20 | 200 | 175.434µs | 112.21.48.119 | GET "/api/me" [GIN] 2024/09/20 - 16:51:20 | 200 | 66.69µs | 112.21.48.119 | GET "/api/public/offline_download_tools" [GIN] 2024/09/20 - 16:51:20 | 200 | 434.382µs | 112.21.48.119 | POST "/api/fs/get" ERRO[2024-09-20 16:51:21] fs/list: Call was made to the default drive, which is not supported for apponly tokens. failed to list objs github.com/alist-org/alist/v3/internal/op.List.func1 /source/internal/op/fs.go:127 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2 /source/pkg/singleflight/singleflight.go:193 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall /source/pkg/singleflight/singleflight.go:195 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do /source/pkg/singleflight/singleflight.go:108 github.com/alist-org/alist/v3/internal/op.List /source/internal/op/fs.go:124 github.com/alist-org/alist/v3/internal/fs.list /source/internal/fs/list.go:25 github.com/alist-org/alist/v3/internal/fs.List /source/internal/fs/fs.go:22 github.com/alist-org/alist/v3/server/handles.FsList /source/server/handles/fsread.go:86 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/alist-org/alist/v3/server/middlewares.Auth /source/server/middlewares/auth.go:73 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 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.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 github.com/gin-gonic/gin.(*Engine).ServeHTTP /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 net/http.serverHandler.ServeHTTP /usr/local/go/src/net/http/server.go:3210 net/http.(*conn).serve /usr/local/go/src/net/http/server.go:2092 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1700 ERRO[2024-09-20 16:51:21] failed list /Jennings OneDrive: Call was made to the default drive, which is not supported for apponly tokens. failed to list objs github.com/alist-org/alist/v3/internal/op.List.func1 /source/internal/op/fs.go:127 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall.func2 /source/pkg/singleflight/singleflight.go:193 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).doCall /source/pkg/singleflight/singleflight.go:195 github.com/alist-org/alist/v3/pkg/singleflight.(*Group[...]).Do /source/pkg/singleflight/singleflight.go:108 github.com/alist-org/alist/v3/internal/op.List /source/internal/op/fs.go:124 github.com/alist-org/alist/v3/internal/fs.list /source/internal/fs/list.go:25 github.com/alist-org/alist/v3/internal/fs.List /source/internal/fs/fs.go:22 github.com/alist-org/alist/v3/server/handles.FsList /source/server/handles/fsread.go:86 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/alist-org/alist/v3/server/middlewares.Auth /source/server/middlewares/auth.go:73 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 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.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1 /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 github.com/gin-gonic/gin.(*Context).Next /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 github.com/gin-gonic/gin.(*Engine).ServeHTTP /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 net/http.serverHandler.ServeHTTP /usr/local/go/src/net/http/server.go:3210 net/http.(*conn).serve /usr/local/go/src/net/http/server.go:2092 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1700 failed get objs [GIN] 2024/09/20 - 16:51:21 | 200 | 1.501328028s | 112.21.48.119 | POST "/api/fs/list" ```
StackExplode commented 2 months ago

我尝试了另一个邮箱结果可以了,请问是不是不能用全局管理员邮箱呢?

interesmazing commented 1 month ago

我也遇到了同样的问题,有可能是Microsoft那边机制发生的改变,这是我新创建的账号挂载rclone的时候出现的新现象,之前只有(3)这一个选项,现在多出来(1)(2)这两个存储集。 image