Receiving “Rate Limit Exceeded” while writing into a Fusion Table

怎甘沉沦 提交于 2019-12-13 00:35:05

问题


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

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.

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?


回答1:


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

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)



来源:https://stackoverflow.com/questions/25892318/receiving-rate-limit-exceeded-while-writing-into-a-fusion-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!