alexreisner / geocoder

Complete Ruby geocoding solution.
http://www.rubygeocoder.com
MIT License
6.35k stars 1.19k forks source link

Intermittent issue with Geocoder.search API #1640

Closed sgmamsys closed 11 months ago

sgmamsys commented 11 months ago

BEFORE POSTING AN ISSUE, PLEASE MAKE SURE THE PROBLEM IS NOT ADDRESSED IN THE README!

Expected behavior

I am taking a random IP address Geocoder.search("103.164.199.142")[0].data["timezone"] = "Asia/Kolkata"

Actual behavior

Geocoder.search("103.164.199.142")[0].data["timezone"] = Geocoding API's response was not valid JSON

Steps to reproduce

This issue is occuring randomly since yesterday.

Environment info

alexreisner commented 11 months ago

There seems to be an intermittent issue with the Ipinfo.io service. You might want to try using a different IP lookup. If problems with Ipinfo.io get worse, we could consider changing the default IP address lookup, but I'm not ready to do that yet.