Hi all.
I use Perl and upload functions of MediaWiki::API and MediaWiki::Bot modules (last version).
Bots don't work - returned "HTTP::Message content must be bytes at /usr/local/share/perl/5.10.0/HTTP/Request/Common.pm line 91".
OS is Debian Linux.
How to resolve this issue?
-- Roman Noverlan
Roman Noverlan, 08/10/2011 02:16:
I use Perl and upload functions of MediaWiki::API and MediaWiki::Bot modules (last version).
Just to check: you know there's https://meta.wikimedia.org/wiki/Pywikipediabot/upload.py , don't you?
Nemo
Yes, you suggest call this script from Perl? In my perl script for mediawiki works all components but not upload
2011/10/8 Federico Leva (Nemo) nemowiki@gmail.com
Roman Noverlan, 08/10/2011 02:16:
I use Perl and upload functions of MediaWiki::API and MediaWiki::Bot
modules
(last version).
Just to check: you know there's https://meta.wikimedia.org/wiki/Pywikipediabot/upload.py , don't you?
Nemo
Wikibots-l mailing list Wikibots-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibots-l
Roman Noverlan, 09/10/2011 14:37:
Yes, you suggest call this script from Perl? In my perl script for mediawiki works all components but not upload
I'm not able to suggest anything, listen to Platodines for suggestions. :-) I was just checking that you were not reinventing the wheel for some simple task, but if it's not very simple I can't help. ;-)
Nemo
Roman Noverlan wrote:
Hi all.
I use Perl and upload functions of MediaWiki::API and MediaWiki::Bot modules (last version).
Bots don't work - returned "HTTP::Message content must be bytes at /usr/local/share/perl/5.10.0/HTTP/Request/Common.pm line 91".
OS is Debian Linux.
How to resolve this issue?
-- Roman Noverlan
Can you provide the http sent and the answer from the server? Tipically I would capture it using wireshark, then copy the contents, remove any sensitive data (eg. replace the content of session cookies) and strip the actual file content if it is too big. Note that just looking at the server response may point you to the problem better than the high-level error.
wikibots-l@lists.wikimedia.org