文章内容
2020/4/24 16:14:54,作 者: 黄兵
google drive Insufficient Permission: Request had insufficient authentication scopes.
最近再使用Google Drive新建文件夹的时候,出现了如下错误:
googleapiclient.errors.HttpError: HttpError 403 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "Insufficient Permission: Request had insufficient authentication scopes."
出现问题的原因:
权限不够,需要重新授权。
解决方案:
1、删除生成的token.pickle文件,之后修改SCOPES:
SCOPES = ['https://www.googleapis.com/auth/drive.file', 'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/drive.appdata']
在此运行代码,之后会提示需要授权,如下图所示:
文件已经新建好了,如下图所示:
代码示例:
黄兵个人博客原创。
转载请注明出处:黄兵个人博客 - google drive Insufficient Permission: Request had insufficient authentication scopes.
用户 on 回复 有用(0)
有些手机号码回被撤下吗?今天看突然少了一些
游客k#z^ on 2020-04-29 15:32:44
博主恢复:是的,有些号码不可用,就删除了。游客>?a< on 2020-04-29 16:57:37
不过我昨天还可以用其中有个号码登录app诶,会不会弄错啦~😁游客!j%a on 2020-04-29 16:58:12
不过我昨天还可以用其中有个号码登录app诶,会不会弄错啦~😁17134503142这个号码游客ROr& on 2020-04-30 09:16:22
博主回复:17134503142这个号码已经不能使用了。