jayvdb added a comment.

The relevant section of the failed log:

  2015-12-21 15:33:35    threadedhttp.py,  214 in            request: DEBUG    
(u'http://wiki.example.com/w/api.php', u'POST', 
'maxlag=5&format=json&text=foo%0A%7B%7B%23office%3A%7D%7D&recreate=&bot=&summary=Bot%3A+Automated+text+replacement++%28-%5E+%2Bfoo%5Cn%29&assert=user&token=...&action=edit&title=Badpage&minor=&basetimestamp=2015-12-21T20%3A33%3A25Z',
 {'cookie': 'wikidb_vpw_Token=....; wikidb_vpw_UserName=Wikisysop2; 
wikidb_vpw__session=ruq6e9ormcajrqogi7fa5hgrv0; wikidb_vpw_UserID=179', 
u'connection': u'keep-alive', u'Content-Type': 
u'application/x-www-form-urlencoded', u'user-agent': u'replace (corewiki:en; 
User:Wikisysop2) Pywikibot/2.0rc4 (g5791) httplib2/0.9 Python/2.7.9.final.0'}, 
5, None)
  2015-12-21 15:33:35            http.py,  309 in error_handling_callback: 
WARNING  Http response status 500
  2015-12-21 15:33:35             api.py, 1586 in             submit: DEBUG    
API response received from corewiki:en:
  2015-12-21 15:33:35             api.py, 1596 in             submit: WARNING  
Non-JSON response received from server corewiki:en; the server may be down.

The API response is literally missing; it is responding with nothing.  Are you 
sure `{{#office:}}` works when it is added using the web browser wikitext 
editor?

Also try 
`https://wiki.example.org/w/api.php?action=expandtemplates&text={{#office:}}`
e.g. 
https://en.wikipedia.org/w/api.php?action=expandtemplates&text={{CURRENTYEAR}}


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

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

To: jayvdb
Cc: jayvdb, 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