matomo-org / plugin-TrackingSpamPrevention

GNU General Public License v3.0
12 stars 7 forks source link

Digital Ocean's ip list seems offline #66

Closed fbett closed 2 years ago

fbett commented 2 years ago

An error is thrown, when the cron is running: Error Failed to retrieve digital ocean IP ranges for task 'Piwik\Plugins\TrackingSpamPrevention\Tasks.updateBlockedIpRanges'

There is an indicator, that the list is unavailable since multiple months: https://www.digitalocean.com/community/questions/what-happened-to-the-digitalocean-ip-address-list

AltamashShaikh commented 2 years ago

Hey @fbett I can download "https://digitalocean.com/geo/google.csv". I can also see we have set a timeout of 120 seconds here, may be check if the file download takes time from your server or is it blocked for your IP or something ?

AltamashShaikh commented 2 years ago

Hey ignore my previous comment file seems to be empty, I will check if I can find something else

fbett commented 2 years ago

Hi @AltamashShaikh You are right, i'm also able to download the list - but the file is empty

AltamashShaikh commented 2 years ago

Hey @fbett the empty response issue has been resolved by Digital Ocean, I will keep this issue open for a while for us to decide what to do in future if same problem arises.

fbett commented 2 years ago

Thanks a lot @AltamashShaikh!

AltamashShaikh commented 2 years ago

@fbett Just FYI, we have added a check to not throw exceptions if the file is empty. It will be released with the new version of plugin in couple of weeks mostly.