Google云端硬盘用户速率限制超出了不同的用户和不同的GAE项目 [英] Google Drive User Rate Limit Exceeded different users and different GAE projects
问题描述
有没有人遇到Google Drive API的问题?
我们收到这个错误:
<$ p $ {$}
代码:403
错误:[{域:usageLimits,原因:userRateLimitExceeded,消息:用户速率超出限制 }
0:{域:usageLimits,原因:userRateLimitExceeded,消息:超过用户速率限制}
消息:超过用户速率限制
$ c
在不同的API项目(不同的GAE项目)上以及不同的用户名,网络等。
这似乎是一个普遍问题。
请看这里最近7天的日志:
日志图片 需要确保您为服务器端代码所做的每个API请求提供 userIp
(或 quotaUser
)参数,详见标准查询参数 Drive API参考部分。
否则,您的所有API请求正在对单个用户进行计数(因为他们都将来自同一IP地址),因此,如果您开始遇到请求速率限制,并不令人意外。
Is there any one having problems with Google Drive API?
We are getting this error:
error: {,…}
code: 403
errors: [{domain: "usageLimits", reason: "userRateLimitExceeded", message: "User Rate Limit Exceeded"}]
0: {domain: "usageLimits", reason: "userRateLimitExceeded", message: "User Rate Limit Exceeded"}
message: "User Rate Limit Exceeded"
on different API projects (different GAE Projects) and with different user names, network, etc..
It seems a general issue.
See here the logs from the last 7 days: Log image
You need to ensure that you supply the userIp
(or quotaUser
) parameter on each API request made by your server-side code, as documented in the "Standard Query Parameters" section of the Drive API reference.
Otherwise, it is possible that all of your API requests are being counted against a single user (since they will all be coming from the same IP address) and therefore it wouldn't be surprising if you start running into request rate limitations.
这篇关于Google云端硬盘用户速率限制超出了不同的用户和不同的GAE项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!