Reputation: 495
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.
The other links I have been looking at is the following.
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?
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
I would like to know
(1) if the service unavailable is due to me unknowingly hitting the rate limits and got throttled
or
(2) Instagram is doing some stuff to their servers, causing this error
NOTE: I have sent a report to Instagram on this issue.
Upvotes: 2
Views: 1242
Reputation: 495
To compensate for this problem, I have added code to rescue from the 503 error and retry again later on. 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.
Upvotes: 0
Reputation: 2745
HTTP 503
response stands for 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
. I believe that in your case it is some kind of overload or maintenance.
You should contact Instagram's support directly.
Upvotes: 3