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

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
4 tasks done
StackExplode opened this issue Sep 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@StackExplode
Copy link

StackExplode commented Sep 20, 2024

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 版本

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 StackExplode added the bug Something isn't working label Sep 20, 2024
@StackExplode
Copy link
Author

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

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

No branches or pull requests

1 participant