Bugs item #3453028, was opened at 2011-12-06 16:52
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=345302…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error downloading data: No JSON object could be decoded
Initial Comment:
replace.py produces the following error message in the middle of large search-and-replace
operations.
Error downloading data: No JSON object could be decoded: line 1 column 0 (char 0)
Request en:/w/api.php?
Retrying in 1 minutes...
1 minute later, it fails again and retries in 2 minutes, then 4 minutes, etc.
The command was:
$ python replace.py -regex -nocase -start:!
'\\\\(example\.net|exampleus)\\common\\softlib'
'\\example.net\global\softlib'
and when prompted for a replacement, I typed "a" for "All". After
doing a bunch of replacements, the error started happening. This is with MediaWiki
1.17.1.
$ sudo python version.py
Pywikipedia [http] trunk/pywikipedia (r9787, 2011/12/06, 07:41:04)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-02-01 12:30
Message:
Could you re-run the script with -v? This should output the queries used,
and might give relevant information.
On a side note, why are you running pwb (or at least version.py) as root?
There is no reason to do that, and it's dangerous.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2012-02-01 11:24
Message:
I am also getting this bug from category.py in -r9851
$ python category.py move -from:"US Payment Processor" -to:"US Payment
Processor project" -pt:0
Happens for some articles not others.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=345302…