Closed llkhacquan closed 5 years ago
@llkhacquan Could you show us your script, and/or a more detailed reproduction plan, and version of your GSB module. Line 693 should only die on empty lists which should not happen :)
I used the latest gsb4 version from cpan sudo cpan intall Net::Google::SafeBrowsing4
Note that this crash does not always happen. The script is very simple here.
After few debuggings, I think the reason can be:
storage
is empty.get_lists
gets error (403 in my case, even when my api is correct).
Thanks for the clarification, I managed to reproduce the issue. 4e4019feb4e471622d7544907a6a90c10a6bc92c addresses that issue, update will return with SERVER_ERROR if $all_lists is undef.
I meet this bug when gsb->update() is called the first time. (storage is empty).
Hope this helps.