alexreisner/geocoder — Issue #170: No exception raised for Google API quota limit
Author: marcinwyszynski
Created: 2012-01-30 13:41:00+00:00
State: open

I went through the code of the gem and theoretically everything should be fine but... there is no way I can trigger the Geocoder::OverQueryLimitError exception. Please see for yourself - this comes from the Rails console of my application:

irb(main):014:0> Geocoder::Configuration.always_raise
=> []
irb(main):015:0> Geocoder::Configuration.always_raise << Geocoder::OverQueryLimitError
=> [Geocoder::OverQueryLimitError]
irb(main):016:0> Geocoder::search('dublin')
Google Geocoding API error: over query limit.
=> []

I am using Geocoder 1.1.0, Rails 3.2.0 and Ruby 1.9.3p0 if that's helpful.