juliensobrier / Net-Google-SafeBrowsing4

Net::Google::SafeBrowsing4 - Perl library for Google Safebrowsing v4
Apache License 2.0
2 stars 4 forks source link

Can't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.14.2/Net/Google/SafeBrowsing4.pm line 615 #26

Closed 07Sai0 closed 2 years ago

07Sai0 commented 2 years ago

Still getting following error

Can't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.14.2/Net/Google/SafeBrowsing4.pm line 615

geever commented 2 years ago

Could you please share a code snippet that you get it with? We can definitely improve the error handing around the mentioned code line, but from a first glance I suspect the root cause be elsewhere, like: missing/not valid api key, not properly configured client. Thank You!

geever commented 2 years ago

Fixed the case that could reset the list, causing this issue. As I mentioned before, it could only happen if downloading the available lists failed.