Tumblr API V2错误代码429:“超出速率限制"您的速率受到限制,请放慢速度.标头信息? [英] Tumblr API V2 Error code 429: "Rate Limit Exceeded" You are being rate limited, slow down. Header info?

查看:653
本文介绍了Tumblr API V2错误代码429:“超出速率限制"您的速率受到限制,请放慢速度.标头信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用PHP测试了Tumblr API,然后尝试与朋友一起使用API​​并成功运行,然后稍后出现此错误:

I tested Tumblr API with PHP, then I try to follow with friends using API and worked successfully, then later I get this error:

错误429超出速率限制"

Error 429 "Rate Limit Exceeded"

我听说我需要等待1个小时,限制将消失. 我也看到一些有关标题的信息:

I heard I need to wait 1 hour and limits will gone. Also I see a few information about headers:

x_ratelimit_api_followers_limit
x_ratelimit_api_followers_remaining
x_ratelimit_api_followers_reset

此信息可以在标题中.什么头? Oauth?我没有发现. 如何查看此变量? 如何获得有关API关注者限制的更多信息? Tumblr的API文档不包含该内容.

This informations can be in header. What header? Oauth? I don't found that. How can I see this variables? How can I get more information about API follower limitations? Tumblr's API documentation not contain that.

推荐答案

由Felix Bonkoski提供的答案 :

Answer provided by Felix Bonkoski:

您只能使用API​​每分钟获取X个关注者.这在x_ratelimit_api _...标头中表示.标头中的这些字段会告知您限制是什么,您可以对API进行多少次调用,限制将在何时到期,以便您可以再次开始使用该API端点.它不在文档中,但请参阅 Tumblr API讨论组那里有处理此问题的帖子.

You can only fetch X many followers per minute with the API. This is represented in the x_ratelimit_api_... headers. These fields in the header inform you what the limit is, how many more calls to the API you can make, and when the limit will expire so that you can start using that API endpoint again. This is not in the documentation, but please see the Tumblr API Discussion Group where there are posts dealing with this issue.

这篇关于Tumblr API V2错误代码429:“超出速率限制"您的速率受到限制,请放慢速度.标头信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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