Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error opening database file (dbs/country_asn.mmdb). Is this a valid MaxMind DB file? #6

Open
NannoSilver opened this issue May 6, 2024 · 0 comments

Comments

@NannoSilver
Copy link

I am running this library, version 0.0.4 and it is set to auto-update the database file, downloading a new .mmdb once a week.

client = ipinfo_db.Client(token, path='dbs/country_asn.mmdb', replace=true_once_a_week())

It performs the database updating once a week as set, however there is a bug.
While this updating is on-going, that is, the new country_asn.mmdb is downloading, and frequently that takes over one minute, any try to extract the IP info from the database fails with this error message:
Error opening database file (dbs/country_asn.mmdb). Is this a valid MaxMind DB file?

After the updating is finished, then it works normally again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant