Support Requests item #3019475, was opened at 2010-06-22 10:59 Message generated for change (Comment added) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Install Problem Group: None Status: Open Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: No JSON object could be decoded
Initial Comment: On Ubuntu 10.04, Karmic LAMP (PHP 5.2) Python 2.6.5, pywikipediabot from 2010-05-29 SVN, using identical server and bot configuration files as on a Mac setup (however, in this case, pywikipediabot reports an IP address, so I didn't need to hack httpd.conf), I get the following:
"Logging into FamilyName:en as UserName via API Error downloading data: No JSON object could be decoded Request en:/scriptpath/api.php? Retrying in x seconds
I changed this to milliseconds to timely see the final error message, which is:
ERROR: ApiGetDataParse cause error No JSON object could be decoded
The program also creates a dump file containing the following:
Error reported: No JSON object could be decoded 127.0.0.1 /scriptpath/api.php?
<feff>{"login":{"result":"NeedToken","token":"[some md5-looking hash]"}}
Any ideas?
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-06-22 11:59
Message: The <feff> is a UTF-16 BOM. Either urllib was changed, or you made some change to api.php, accidentally adding it. Could you double-check if your api.php is unchanged from the original mediawiki files (in other words: replace it with an orginal from SVN/release)?
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts () Date: 2010-06-22 11:06
Message: Looking at some earlier logs, I see that this problem first appeared when I upgraded from Python 2.6.1 to 2.6.2 in May. I am surprised that I seem to be the only person having this problem.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3019475...
pywikipedia-bugs@lists.wikimedia.org