Last modified: 2014-07-24 13:12:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57225, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55225 - Error downloading data: No JSON object could be decoded
Error downloading data: No JSON object could be decoded
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:46 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-24 13:12 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:46:31 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1387/
Reported by: djbarrett
Created on: 2011-12-07 00:52:22
Subject: Error downloading data: No JSON object could be decoded
Original description:
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 1 Kunal Mehta (Legoktm) 2013-10-05 04:46:33 UTC
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.
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:46:35 UTC
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 3 Amir Ladsgroup 2014-07-24 12:53:06 UTC
Can't reproduce + reported three years ago ==> closed invalid

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links