Last modified: 2013-11-25 10:36:36 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 T45046, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43046 - 504 Gateway timeout when editing through API
504 Gateway timeout when editing through API
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-12 22:22 UTC by Strainu
Modified: 2013-11-25 10:36 UTC (History)
1 user (show)

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


Attachments

Description Strainu 2012-12-12 22:22:04 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
Comment 1 Andre Klapper 2012-12-13 00:28:53 UTC
Could you provide a minimal testcase?
Comment 2 Strainu 2012-12-13 12:10:14 UTC
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.
Comment 3 Andre Klapper 2012-12-13 12:41:37 UTC
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.
Comment 4 Strainu 2012-12-13 13:08:15 UTC
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.
Comment 5 Strainu 2013-09-06 21:44:21 UTC
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.
Comment 6 Strainu 2013-11-25 10:36:36 UTC
Perhaps it's a dup of bug 57026 ? Well, more like the other way around, but since that bug already has a patch...

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


Navigation
Links