Hello, we’ve been running into this issue in LHR since yesterday (fly-foodbank-production-web), where API requests to google geocoding are timing out or not connecting.
opened 10:47AM - 21 Mar 17 UTC
closed 09:05PM - 27 Sep 17 UTC
I've this error only in production, on dev machine it is super fast. I've seen t… his answer on SO, http://stackoverflow.com/questions/26093393/geocoding-api-not-responding-fast-enough-for-ip-address, but I'm not searching by IP. This is what I'm doing in my model:
```ruby
reverse_geocoded_by :latitude, :longitude do |obj,results|
if geo = results.first
obj.city = geo.city
obj.zip = geo.postal_code
obj.state = geo.state
obj.country = geo.country_code
end
end
after_validation :reverse_geocode
```
And this is my geocoder config file
```ruby
Geocoder.configure(
timeout: 15, # geocoding service timeout (secs)
lookup: :google, # name of geocoding service (symbol)
api_key: 'myKey', # API key for geocoding service
)
```
Any suggestion?
According to the GitHub issue, this may be due to an ipv6 misconfiguration, any ideas?
lubien
July 19, 2022, 11:34am
2
Hi @matthewford !
Can you please post the logs around the time this issue happens and maybe your fly.toml?
jerome
July 19, 2022, 11:38am
3
Do you know which hostname you’re connecting to for the geocoding API? This would help us reproduce the issue.
Also seeing the a similar issue with the same app:
SocketError: getaddrinfo: Temporary failure in name resolution (api.authy.com:443 )