GitSquared / node-geolite2-redist

Redistribution of MaxMind GeoLite2 GeoIP databases as an npm library
https://gitsquared.github.io/node-geolite2-redist/
Other
81 stars 18 forks source link

Checksum mismatch on latest commit #26

Closed yunyu closed 2 years ago

yunyu commented 2 years ago

This started happening as of 2 hours ago.

geolite2 self-update error: Error: Mismatched checksums for GeoLite2-Country

Two things:

Had to switch to geolite2 to get prod back up

GitSquared commented 2 years ago

thanks for the report. I've pushed a force-update for the checksums and looking for a real patch to avoid this in the future.

yunyu commented 2 years ago

I think the best fix is to not delete the previous db files if an update fails so the download call can wrapped with try/catch?

GitSquared commented 2 years ago

@yunyu this is actually something the library does now. I was confused why it didn't work out but your error message is an old one from version 2 of this library.

You should update to the latest version v3.0.2. There's only a slight breaking change and you'll get way more stability & even performance.