maiden_taiwan created this task.
maiden_taiwan added a subscriber: maiden_taiwan.
maiden_taiwan added a project: Pywikibot-replace.py.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.

TASK DESCRIPTION
  replace.py complains of non-JSON output when it operates on certain pages on 
my wiki:
  
  ```
  $ cat test
  Badpage
  $ pwb.py replace.py -file:test -regex '^' "foo\n" -pt:0
  WARNING: Http response status 500
  WARNING: Non-JSON response received from server corewiki:en; the server may 
be down.
  WARNING: Waiting 5 seconds before retrying.
  WARNING: Waiting 10 seconds before retrying.
  WARNING: Waiting 20 seconds before retrying.
  ...```
  
  This happens for pages that invoke a particular parser function. When the 
page contains plain text ("blah"), the replacement succeeds.
  
  I will attach pywikibot log files showing what happens when the page contains 
plain text vs. the parser function. I would appreciate if someone could explain 
what is going wrong and if this is a bug in pywikibot.
  
  ```
  $ version.py
  Pywikibot: [https] r-pywikibot-core (699d97a, g5791, 2015/12/15, 18:30:21, 
OUTDATED)
  Release version: 2.0rc4
  httplib2 version: 0.9
    cacerts: 
/home/local/domain/smith/pywikibot/externals/httplib2/python2/httplib2/cacerts.txt
      certificate test: ok
  Python: 2.7.9 (default, Apr  2 2015, 15:33:21)
  [GCC 4.9.2]
    unicode test: ok
  PYWIKIBOT2_DIR: Not set
  PYWIKIBOT2_DIR_PWB: /home/local/domain/smith/pywikibot
  PYWIKIBOT2_NO_USER_CONFIG: Not set
  Config base dir: /home/local/domain/smith/pywikibot
  Usernames for family "vistawiki":
          en: Wikisysop2 (also sysop)
  Usernames for family "corewiki":
          en: Wikisysop2 (also sysop)
  Usernames for family "testvistawiki":
          en: Wikisysop2 (also sysop)
  Usernames for family "preprodvistawiki":
          en: Wikisysop2 (also sysop)
  Usernames for family "preprodcorewiki":
          en: Wikisysop2 (also sysop)
  Usernames for family "testcorewiki":
          en: Wikisysop2 (also sysop)
  ```

TASK DETAIL
  https://phabricator.wikimedia.org/T122075

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: maiden_taiwan
Cc: Aklapper, StudiesWorld, maiden_taiwan, pywikibot-bugs-list



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to