已超出 Google URL Shortener 403 速率限制 [英] Google URL Shortener 403 Rate Limit Exceeded

查看:26
本文介绍了已超出 Google URL Shortener 403 速率限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用谷歌 url 缩短器 api,它工作正常,直到我开始在负载测试.很快就开始从 Google 找回 403 Rate Limit Exceeded 错误,即使我注册使用 API 并且它每天有 1,000,000 次点击.我可以看到谷歌报告工具上的请求,他们只是发回 403 的所有内容.403 开始​​以大约 345/350 的 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.

想法?

推荐答案

API 将请求限制为 1 个请求/每秒/每个用户.

The API limits requests to 1 request / per second / per user.

用户被定义为唯一的 IP 地址.

A user is defined as a unique IP address.

因此,如果您从单个 IP 进行负载测试,这将导致您的速率限制问题.

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屋!

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