仅适用于更新功能。
https://developers.google.com/apis-explorer 和良好的工作在api资源管理器中使用相同的参数。 更新文件来自云域文件。是这个原因吗?
Traceback (most recent call last):
File "E:/cygwin64/home/socia/workspace/language/python/wc_py2_rule/src/main/python/package_name/module/sotrage/google_folder_changer.py", line 230, in <module>
main(sys.argv[1:])
File "E:/cygwin64/home/socia/workspace/language/python/wc_py2_rule/src/main/python/package_name/module/sotrage/google_folder_changer.py", line 101, in main
set_seed_file_on_folder(file_info, folder, service)
File "E:/cygwin64/home/socia/workspace/language/python/wc_py2_rule/src/main/python/package_name/module/sotrage/google_folder_changer.py", line 142, in set_seed_file_on_folder
removeParents=file_info['parents']).execute()
File "E:\cygwin64\home\socia\workspace\language\python\wc_py2_rule\venv\lib\site-packages\googleapiclient\_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "E:\cygwin64\home\socia\workspace\language\python\wc_py2_rule\venv\lib\site-packages\googleapiclient\http.py", line 851, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files/... returned "File not found: [u'file_id'].">
file_id因安全原因错误而被替换 链接内容在下面。
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
答案 0 :(得分:0)
“超出了未经身份验证的使用的每日限制。继续使用需要注册。”
表示您正在调用私有方法而未先认证为用户。如果要查看用户数据,则必须经过身份验证才能访问该数据。在尝试运行有问题的方法之前,请检查代码并确保正确设置了身份验证,并且用户已登录。