Last modified: 2013-11-25 10:36:36 UTC
I'm running a robot that makes relatively small changes in ~250KB pages. Starting from November, the change is made, but I recieve a 504 error. This does not happen when making the change manually and it did not happen earlier in the year (say, September). The code is a custom, pywikipediabot-based robot on ro.wp. (user agent: 'PythonWikipediaBot/1.0') One example of such change is https://ro.wikipedia.org/w/index.php?title=Lista_monumentelor_istorice_din_jude%C8%9Bul_Bra%C8%99ov&diff=prev&oldid=7189114 Source code is available at: http://code.google.com/p/wikiro/source/browse/trunk/robots/python/pywikipedia/monumente/corroborate_monument_data.py
Could you provide a minimal testcase?
I'm not sure what you mean by "minimal". Any change like the one above fails if made by API, but works in the browser. It seems like a pretty small change to me.
By minimal I refer to a testcase that is not 465 lines long (like your .py file) but only triggers the problem and does nothing else. Nobody will want to read 465 files to find a potential mistake in there.
Empty change shows the problem: http://proiecte.strainu.ro/wiki/test.py I tested this from a server with a reliable Internet connection from another ISP than my home provider, so I don't think this has anything to do with my connection.
More data gathered from IRC with the help of MaxSem: - editing *works* from API for ro:Lista_monumentelor_istorice_din_județul_Caraș-Severin (213K currently) - editing *doesn't work *from API for ro:Lista_monumentelor_istorice_din_București,_sector_1 (184K currently) - editing works from browser for both pages The error is "Maximum execution time of 180 seconds exceeded" and happens after the page is saved, apparently during parsing of the page. I still believe that editing should work just as well from API and from browser.
Perhaps it's a dup of bug 57026 ? Well, more like the other way around, but since that bug already has a patch...