简体   繁体   English

503:Instagram正在限制您的请求的速率

[英]503: Instagram is rate limiting your requests

For the past two days, I have been facing this issue. 在过去的两天里,我一直在面对这个问题。

503: Instagram is rate limiting your requests

There are generally two types of query that causes this error. 通常有两种类型的查询会导致此错误。 Though there is no discern-able consistency I can find. 尽管没有明显的一致性,但我可以找到。

GET https://api.instagram.com/v1/users/self/media/recent.json?access_token=<user token>: 503: Instagram is rate limiting your requests.

GET https://api.instagram.com/v1/users/self.json?access_token=<user token>: 503: Instagram is rate limiting your requests.

I have searched the documentation ( https://www.instagram.com/developer/ ) but I was unable to find any references to 503 errors. 我已经搜索了文档( https://www.instagram.com/developer/ ),但是找不到与503错误有关的任何参考。

The other links I have been looking at is the following. 我一直在看的其他链接如下。

Instagrm Rate limit issue 固定利率限制问题

https://imranakbar.wordpress.com/2012/09/13/rate-limit-exceeded-instagram-error/ https://imranakbar.wordpress.com/2012/09/13/rate-limit-exceeded-instagram-error/

As I am using the instagram-ruby gem, it seems like the service is unavailable? 当我使用instagram-ruby gem时,似乎该服务不可用?

raise Instagram::ServiceUnavailable, error_message_500(response, "Instagram is rate limiting your requests.")

Refer to this link for more information on instagram-ruby gem https://github.com/facebookarchive/instagram-ruby-gem/blob/master/lib/faraday/raise_http_exception.rb 请参阅此链接以获取有关instagram-ruby gem https://github.com/facebookarchive/instagram-ruby-gem/blob/master/lib/faraday/raise_http_exception.rb的更多信息

I would like to know 我想知道

(1) if the service unavailable is due to me unknowingly hitting the rate limits and got throttled (1)如果服务不可用是由于我在不知不觉中达到了速率限制并受到限制

or 要么

(2) Instagram is doing some stuff to their servers, causing this error (2)Instagram正在对其服务器执行某些操作,从而导致此错误

NOTE: I have sent a report to Instagram on this issue. 注意:我已将有关此问题的报告发送给Instagram。

HTTP 503 response stands for Service Unavailable . HTTP 503响应表示Service Unavailable The error message is misleading as it suggest that you are hitting your rate limit. 该错误消息具有误导性,因为它表明您已达到速率限制。 From Instagram's documentation , you can read that hitting rate limit will result in HTTP 429 . Instagram的文档中 ,您可以了解到命中率限制将导致HTTP 429 I believe that in your case it is some kind of overload or maintenance. 我相信您的情况是某种过载或维护。

You should contact Instagram's support directly. 您应该直接联系Instagram的支持。

To compensate for this problem, I have added code to rescue from the 503 error and retry again later on. 为了弥补此问题,我添加了代码以从503错误中解救出来,然后稍后重试。 To avoid retrying indefinitely, the code will also keep tabs of the number of retries and will show an error after a number of retries. 为避免无限期重试,该代码还将保留重试次数的标签,并在重试多次后显示错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM