Throttle limit reached. Retry later - ruby-on-rails-5

I apologize in advance for the lack of information on this, I'm at a bit of a loss.
I have a rails 5 API backend, with Postgres database hosted on heroku. It is serving to an iOS client. The main screen in the client is a map which uses the Google API on the front end to draw locations. The backend uses the Geocoder gem to search for places near to the user.
So the front end hits /restaurants and sends user_lat, user_long, search_lat, search_long and distance. The API returns a list of locations that meet those params and the client draws them.
Occasionally the front end displays "Throttle limit reached. Retry Later". This error is supposed to be coming from the back end API but I don't see this error anywhere in the heroku logs.
I've searched the Google API docs, Geocoder gem docs and can't find much. The error doesn't seem to match the OVER_QUERY_LIMIT errors mentioned in that other users have reported with the Google maps API.
Any help is much appreciated.

This was coming from the RackAttack Gem.

Related

Google Search Console API Results Two Days Behind the Site. How to Fix?

So I just started working with the Google Search Console API to see top keywords that sent people to a site and interestingly, when I use the API, the most recent data I can get is from two days ago, but if I go directly into the search console website as a user, I can get data from today.
Is there a way to fix this or is it a known limitation? I Know there's a 48-hour delay in getting the search console data into Google Analytics, but I thought that applied only to the GA / Search console connection.
Simple! You just have to define the value for dataState as all to include this fresh data you're referring to.

direct message sync issue with twitter API

I am using the twitter api to get all direct messages
while testing I tried to delete a message from the twitter website and then tried to reload my app's direct message page (get via api) - the dm I deleted was still showing in my app but it wasn't on the account I was using on the website.
I'm not sure whats going on here, any help is appreciated
You usually should give a second after an update/delete operation on Twitter. If you do, I would say that something is going wrong with your code.

Instagram realtime API rate limits

I was using Instagram realtime API for some time and everything was working fine. I have only one subscription on users.
Lately it started to behave totally strange. I'm not getting all of the content, and there's no way to find any pattern. Every request triggers a log right when it hits my server so I can tell whether or not Instagram notifies me about the new content pretty accurately.
I'm starting to suspect that rate-limit is causing this problems. Does anybody knows if there's some rate-limit that can cause that behavior? Did anybody else have similar problems with the Instagram real-rime API ?
There is a rate limit of 5000/post/hour [BY experience and best of my knowledge]
However Instagram is very good in explaining the root cause so, if you see the error message it would clearly say "RateLimitExceeded" or what ever the root cause may be.

How to get unblocked after exceeding the Google Geocode API usage limit?

Have searched for answers on this for 2 days now with very little luck.
I'm developing a Drupal 7 site which has a Geofield field being autopopulated from an address field using the Google Geocoder API, but as of a couple of days ago this stopped working:
Exception: Google API returned bad status.\nStatus: OVER_QUERY_LIMIT in geocoder_google() (line 52 of /home/.../modules/geocoder/plugins/geocoder_handler/google.inc).
I can remove the proximity search filter that is sending too many requests to the Google API but I can't progress because I run into the above error every time I try to add a new record to the database (which just does one lookup to get a geocode from an address field but fails). Is there any way to unblock my site from Google's API or reset my usage? I've added an API key but to no avail. This was all working fine up until very recently, which I guess is when I unknowingly exceeded the usage limit.
I have limited API experience and am a Drupal/PHP beginner so please be gentle! Happy to provide more info, code, error messages etc if needed. Relevant Drupal 7 modules being used are OpenLayers, OpenLayers Proximity, Geofield, GeoPHP and Geocoder. Thanks for any help anyone can offer.
From Google Geocode Documentation:
Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day. (User of Google Maps API for Business may perform up to 100,000 requests per day.) This limit is enforced to prevent abuse and/or repurposing of the Geocoding API, and this limit may be changed in the future without notice. Additionally, we enforce a request rate limit to prevent abuse of the service. If you exceed the 24-hour limit or otherwise abuse the service, the Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Geocoding API may be blocked.
So, I guess you have to wait 24 hours, or upgrade to the business version.

Google Translate API - Access Denied Error 403

I am using Google API for one of my project. I completed all the formalities with google. I pay the bill for using it. But I cannot move out with one issue. If I send data for translation back to back, google reverts back with Access denied Error 403. So I had to put some delay in my code. But as a matter of fact total time is increasing. So what is the possible way to recover this issue.
I am using C# dot net to call the google API.
> https://www.googleapis.com/language/translate/v2?key=xxxxxxxxxxxxxxxxxxxxxxx&q={0}&source=en &target=sv
From Google translate API FAQ page:
You may be exceeding your quota: either the daily billable total, or the limit on request characters per second.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
For more information Google translate API FAQ