matomo-org / plugin-TrackingSpamPrevention

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

Plugin fails to download Azure IP's #79

Closed tsteur closed 1 year ago

tsteur commented 1 year ago

Getting this error:

Scheduler: Error Expected download URL for Azure IP ranges to start with HTTP but it does not. It is: .json for task 'Piwik\Plugins\TrackingSpamPrevention\Tasks.updateBlockedIpRanges'

This used to work but now started failing.

snake14 commented 1 year ago

@tsteur I enabled TrackingSpamPrevention and enabled blocking cloud IP addresses. I then saw in the comment block of that task that it could be manually run using ./console core:run-scheduled-tasks --force "Piwik\Plugins\TrackingSpamPrevention\Tasks.updateBlockedIpRanges", so I tried that. It completed without any errors.

Any recommendations on what else I could try to reproduce the error?

tsteur commented 1 year ago

Thanks @snake14 I'll close it again for now and will reopen should it happen again tomorrow

tsteur commented 1 year ago

Actually @snake14 I believe the "block cloud" setting also needs to be enabled. Is that the case? You find it in Administration -> General Settings

image
snake14 commented 1 year ago

@tsteur I'm pretty sure I had the right setting enabled before I ran the console command. Is this the one you're talking about? image

Edit: I think it's the right one. I ran the command again with the debugger and line 41 in the task evaluated to true and updateBlockedIpRanges() was executed on line 42.

tsteur commented 1 year ago

Yes 👍 Awesome, thanks. I'll comment should I see it again.