oschwald / geoip2-golang

Unofficial MaxMind GeoIP2 Reader for Go
ISC License
1.86k stars 191 forks source link

"unexpected end of database" error when using latest country db #100

Closed amazzalel-habib closed 1 year ago

amazzalel-habib commented 1 year ago

DB opening is working fine, but once I run db.Country(ip) I get "error":"unexpected end of database". It seems it works fine for an old version of GeoLite2-Country.mmdb but not for the latest one!

oschwald commented 1 year ago

It sounds like your file got corrupted somehow.

amazzalel-habib commented 1 year ago

@oschwald indeed, I'll close the issue. Thanks!