alexreisner/geocoder

Intermittent issue with Geocoder.search API

sgmamsys opened this issue · 1 comments

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

  • Geocoder version: 1.6.7
  • Rails version:
  • Database (if applicable):
  • Lookup (if applicable):

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.