The author of the Geocoder gem has this to say:
[A]re you sure the app server was restarted since you added Geocoder?
First, verify that the gem is indeed installed by issuing a Geocoder command in your production console:
# from the production console
Geocoder.search("San Francisco, CA")
If this does not throw any errors, try restarting the server. A soft boot might work – a hard boot is better. This will reload your entire Rails environment, inclusive of any installed dependencies.
UPDATE:
As mentioned in the comments to this answer, the problem is related to the Geocoding API not responding fast enough
error.
How long is the appropriate timeout?
That's hard to say. The gem's author suggests 15
, as you already have it set to. The geocoding service may be momentarily slow – or it may be slow overall. IMO, set it incrementally higher and find the number where it starts working – then leave it there.
Note that the client-side vs. server-side argument may not apply here. The SO post cited in the OP's question relates to request quotas. The problem being witnessed in the question, in contrast, seems to relate to geocoding speed, which would not be affected whether the calls are made by the client or by the server.