alist icon indicating copy to clipboard operation
alist copied to clipboard

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

Open StackExplode opened this issue 1 year ago • 1 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 版本

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/[email protected]/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/[email protected]/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/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /go/pkg/mod/github.com/gin-gonic/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1
        /go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:249
github.com/gin-gonic/gin.(*Context).Next
        /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
        /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:633
github.com/gin-gonic/gin.(*Engine).ServeHTTP
        /go/pkg/mod/github.com/gin-gonic/[email protected]/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 avatar Sep 20 '24 08:09 StackExplode

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

StackExplode avatar Sep 21 '24 03:09 StackExplode

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

interesmazing avatar Oct 26 '24 16:10 interesmazing

我也出现了这个问题,我在更改了用户默认 Email 地址后就发生了 Drive 索引数字发生改变的情况。

mengguyi avatar Jan 02 '25 04:01 mengguyi

我也出现了这个问题,我在更改了用户默认 Email 地址后就发生了 Drive 索引数字发生改变的情况。

版本:v3.37.4和v3.41.0

我也遇到了这个问题,情况和@mengguyi 描述的一样,在office365后台修改了主电子邮件地址,原来的主电子邮件地址变为别名,在alist里填写的新邮件地址就会出现这个错误,在office365后台改回原来的邮件地址就可以恢复访问。

MeowHubOffical avatar Feb 27 '25 13:02 MeowHubOffical