Subject: | MediaWiki::API crashing |
A user reported the following bug:
I see it's more than just tests: my bot dies after a timeout producing:
Use of uninitialized value in length at
/usr/local/share/perl/5.8.8/MediaWiki/API.pm
line 271.
Can't use an undefined value as a HASH reference at
/usr/local/share/perl/5.8.8/
Perlwikipedia.pm line 364.
----
That's what I get when I try to execute
code from "synopsis" in
http://search.cpan.org/~exobuzz/MediaWiki-API-0.21/lib/
MediaWiki/API.pm (my version is 0.21, so the latest):
Use of uninitialized value in length at
/usr/local/share/perl/5.8.8/MediaWiki/API.pm
line 282.
2: http://en.wikipedia.org/w/api.php returned a zero length string at
./testmwapi.pl
line 8.
----
The bug was filed at
http://code.google.com/p/perlwikipedia/issues/detail?id=13 and appears
to be upstream.