Google URL Shortener 403超出限制速度 [英] Google URL Shortener 403 Rate Limit Exceeded
问题描述
使用谷歌网址缩短API,它工作正常,直到我开始在负载测试。尽快注册使用API并且每天有100万次点击,但很快就开始获得403超出Google限制的错误。我可以看到谷歌报告工具中的请求,他们只是发回403的一切。 403开始回到API的345/350点左右,一直持续数小时。
解决方案该API将请求限制为1个请求/每秒/每个用户。
用户被定义为唯一的IP地址。
因此,如果您是从单一IP进行负载测试,则会导致您的费率限制问题。
https://developers.google.com/analytics/devguides/reporting/ mcf / v3 / limits-quotas#general_api
Using the google url shortener api, it was working fine till I started testing at load. Quickly started getting back 403 Rate Limit Exceeded errors from Google, even though I signed up to use the API and it comes with 1,000,000 hits a day. I can see the requests coming in on the google reporting tool, and they are just sending back 403's for everything. 403's started coming back at around 345/350 hits to the API, have been continuing for hours.
Thoughts?
The API limits requests to 1 request / per second / per user.
A user is defined as a unique IP address.
So if you were doing your load testing from a single IP this would have cause your rate limit issue.
https://developers.google.com/analytics/devguides/reporting/mcf/v3/limits-quotas#general_api
这篇关于Google URL Shortener 403超出限制速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!