panthomakos / timezone

Accurate current and historical timezones for Ruby with support for Geonames and Google latitude - longitude lookups.
http://rubygems.org/gems/timezone
MIT License
354 stars 49 forks source link

Invalid Timezone error #75

Closed SergeyMell closed 7 years ago

SergeyMell commented 7 years ago

Recently I started to get Timezone::Error::InvalidZone very often for valid coordinates. After retrying the request (sometime it required several repeats) it starts working ok

panthomakos commented 7 years ago

@SergeyMell you may be hitting an API request limit for Google of Geonames depending on your usage. If you believe the issue is due to the timezone gem, please provide me with some more detailed information so I can help debug! I would recommend checking your usage in Google/Geonames to see if you were hitting an API limit first.

SergeyMell commented 7 years ago

I used Geonames service. I reproduced the daily limit reaching. It raises Timezone::Error::GeoNames not Timezone::Error::InvalidZone. Any case I can't reproduce the issue for now so I think it was caused by some internal service problems and no longer relevant.