接收到“超出速率限制".写入Fusion Table时 [英] Receiving "Rate Limit Exceeded" while writing into a Fusion Table

查看:65
本文介绍了接收到“超出速率限制".写入Fusion Table时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序,该应用程序使用API​​和服务帐户(OAuth2)将数据写入Fusion Tables.

I'm developing an web application that writes data to Fusion Tables using the API and a Service Account (OAuth2).

由于某种原因,在插入30次之后,我得到超出速率限制"(403).唯一的解决方法是像 https://developers.google.com/drive一样应用指数补偿/web/handle-errors .

For some reason, after 30 INSERT's, I get "Rate Limit Exceeded" (403). The only workaround is to apply exponential backoff as in https://developers.google.com/drive/web/handle-errors.

根据发行说明( https://developers.google.com/fusiontables/docs/v1/release_notes ),每个INSERT计数5个请求,而我的30个INSERT在约1.5分钟内完成,因此大约是5 * 30/90,因此少于2个请求/用户/秒.即使我已将API控制台中的限制更改为10、50、100(请求/用户/秒),也没有任何变化.好像是我连续能完成的30次插入.

According to the release notes (https://developers.google.com/fusiontables/docs/v1/release_notes), every INSERT counts for 5 requests, and my 30 INSERT's complete in ~1,5 minute, so this is about 5*30/90, thus less than 2 requests/user/second. Even if I have changed the limit in the API console to be 10, 50, 100 (requests/user/second), nothing changes; 30 INSERTS look like the best I can do in a row.

似乎我超出了其他限制,但是哪个?

It seems that I'm exceeding some other limit, but which?

推荐答案

写请求的限制是每分钟30条,请参阅:

The limit for write-requests is 30 per minute, see: https://developers.google.com/fusiontables/docs/v1/using#quota

当您通过控制台请求更多配额(并获得配额)时,这将影响每天的API请求数,但不会影响每分钟允许的写入请求数(我无法告诉您是否有可能增加该配额限制)

When you request more quota via the console (and get it) this will affect the number of API requests per day, but not the number of allowed write-requests per minute(I can't tell you if it's possible increase this limit)

这篇关于接收到“超出速率限制".写入Fusion Table时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆