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

Access denied: API 权限获取问题 #41

Closed
Spute opened this issue Jan 11, 2023 · 7 comments
Closed

Access denied: API 权限获取问题 #41

Spute opened this issue Jan 11, 2023 · 7 comments

Comments

@Spute
Copy link

Spute commented Jan 11, 2023

问题描述
windows10环境
个人版的自建应用

request Drive#GetDocxDocument failed: code: 99991672, msg: Access denied. One of the following scopes is required: [docx:document, docx:document:readonly]

报错的截图
image

麻烦帮忙看一下问题,谢谢!

@Wsine
Copy link
Owner

Wsine commented Jan 11, 2023

请阅读 README 中 获取 API Token 的部分,特别是标注重要的部分。

@Spute Spute closed this as completed Jan 12, 2023
@Spute
Copy link
Author

Spute commented Jan 12, 2023

仔细看README,依次操作后已经解决这个问题,感谢开发者!
以下是飞书开发者后台的配置流程图,希望对碰到相同问题的朋友有所帮助。
image

@Wsine Wsine changed the title Access denied Access denied: API 权限获取问题 Jan 12, 2023
@Wsine Wsine pinned this issue Jan 12, 2023
@ChunChunWeb
Copy link

抱歉打扰了,已经操作所有权限并且发布,控制台报错为403:
image
云文档中的权限全部打开。

@Wsine Wsine unpinned this issue May 27, 2023
@0RAJA
Copy link

0RAJA commented Sep 13, 2023

文档为企业的wiki,导出提示权限不足
panic: request Drive#GetWikiNode failed: code: 131006, msg: permission denied: node permission denied

@wenqi73
Copy link

wenqi73 commented Nov 10, 2023

文档为企业的wiki,导出提示权限不足 panic: request Drive#GetWikiNode failed: code: 131006, msg: permission denied: node permission denied

同样遇到该问题。


原因找到,还是权限问题。首先应用的所有者需要有文档的管理员权限,然后再将应用添加为文档协作者。
https://open.feishu.cn/document/server-docs/docs/faq

@pzistart
Copy link

文档为企业的wiki,导出提示权限不足 panic: request Drive#GetWikiNode failed: code: 131006, msg: permission denied: node permission denied

同样遇到该问题。

原因找到,还是权限问题。首先应用的所有者需要有文档的管理员权限,然后再将应用添加为文档协作者。 https://open.feishu.cn/document/server-docs/docs/faq

image
大佬您好,是给应用添加这个机器人吗?
我添加了,但是在文档中添加文档应用的时候找不到这个机器人呀。
image

@pzistart
Copy link

已解决,注意!
账号要分清楚。此时你已经有两个账号,哪个账号创建的应用,就能将其添加到哪个账号的文章中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants