Anomie removed projects: MediaWiki-API, Core Platform Team.
Anomie added a comment.
> Pywikibot is using POST and not GET, but it fails the same. Most recent
attempt resulted in
>
>
{"error":{"code":"internal_api_error_WMFTimeoutException","info":"[XknCBQpAAEsAAJ7w@woAAACH]
Caught exception of type
WMFTimeoutException","errorclass":"WMFTimeoutException"},"servedby":"mw1280"}
>
> Could someone with logstash access look into what's going on with the
media-wiki end?
The exception logged by MediaWiki for that error was
2020-02-16 22:29:22 [XknCBQpAAEsAAJ7w@woAAACH] mw1280 commonswiki
1.35.0-wmf.19 exception ERROR: [XknCBQpAAEsAAJ7w@woAAACH]
/w/api.php?gaifrom=%F0%A9%B5%8F&prop=info|imageinfo|categoryinfo&inprop=protection&iiprop=timestamp|user|comment|url|size|sha1|metadata&iilimit=max&generator=allimages&action=query&indexpageids=&continue=gaicontinue||userinfo&gaidir=descending&gailimit=500&meta=userinfo&uiprop=blockinfo|hasmsg&maxlag=5&format=json&gaicontinue=%EF%BC%90%EF%BC%97%E5%BC%8F%E6%A9%9F%E5%8B%95%E6%94%AF%E6%8F%B4%E6%A9%8B%EF%BC%88%E8%A3%85%E5%82%99%E5%93%81%E5%B1%95%E7%A4%BA%E3%83%BB%E6%96%BD%E8%A8%AD%E5%AD%A6%E6%A0%A1%EF%BC%89_(4).jpg
WMFTimeoutException from line 39 of
/srv/mediawiki/wmf-config/set-time-limit.php: the execution time limit of 60
seconds was exceeded
{"exception_id":"XknCBQpAAEsAAJ7w@woAAACH","exception_url":"/w/api.php?gaifrom=%F0%A9%B5%8F&prop=info|imageinfo|categoryinfo&inprop=protection&iiprop=timestamp|user|comment|url|size|sha1|metadata&iilimit=max&generator=allimages&action=query&indexpageids=&continue=gaicontinue||userinfo&gaidir=descending&gailimit=500&meta=userinfo&uiprop=blockinfo|hasmsg&maxlag=5&format=json&gaicontinue=%EF%BC%90%EF%BC%97%E5%BC%8F%E6%A9%9F%E5%8B%95%E6%94%AF%E6%8F%B4%E6%A9%8B%EF%BC%88%E8%A3%85%E5%82%99%E5%93%81%E5%B1%95%E7%A4%BA%E3%83%BB%E6%96%BD%E8%A8%AD%E5%AD%A6%E6%A0%A1%EF%BC%89_(4).jpg","caught_by":"mwe_handler"}
[Exception WMFTimeoutException]
(/srv/mediawiki/wmf-config/set-time-limit.php:39) the execution time limit of
60 seconds was exceeded
#0 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiResult.php(370):
{closure}(integer)
#1 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiResult.php(371):
ApiResult::validateValue(array)
#2 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiResult.php(411):
ApiResult::validateValue(array)
#3 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiQueryBase.php(496):
ApiResult->addValue(array, NULL, array)
#4
/srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiQueryImageInfo.php(183):
ApiQueryBase->addPageSubItem(integer, array)
#5 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiQuery.php(255):
ApiQueryImageInfo->execute()
#6 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiMain.php(1586):
ApiQuery->execute()
#7 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiMain.php(522):
ApiMain->executeAction()
#8 /srv/mediawiki/php-1.35.0-wmf.19/includes/api/ApiMain.php(493):
ApiMain->executeActionWithErrorHandling()
#9 /srv/mediawiki/php-1.35.0-wmf.19/api.php(84): ApiMain->execute()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}
Unfortunately that doesn't tell us a whole lot.
When I tried the URL in the description just now, instead of a timeout it
gave an error page stating "Allowed memory size of 692060160 bytes exhausted
(tried to allocate 40960 bytes)". Overall, handling of metadata in ApiImageInfo
is pretty crappy and the whole thing needs a rewrite
<https://phabricator.wikimedia.org/T89971>.
I'm going to untag #MediaWiki-API
<https://phabricator.wikimedia.org/tag/mediawiki-api/> from this task, as the
API part is likely a duplicate of one of the subtasks of T89971
<https://phabricator.wikimedia.org/T89971>.
TASK DETAIL
https://phabricator.wikimedia.org/T245374
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Anomie
Cc: Anomie, Xqt, Urbanecm, TheSandDoctor, Aklapper, AntiCompositeNumber,
pywikibot-bugs-list, Zkhalido, Viztor, Legado_Shulgin, Wenyi, Davinaclare77,
Qtn1293, Techguru.pc, Th3d3v1ls, Hfbn0, Tbscho, MayS, Zppix, Mdupont, JJMC89,
Dvorapa, Altostratus, Avicennasis, Wong128hk, mys_721tx, jayvdb, faidon, Masti,
Alchimista, Rxy, Jay8g, fgiunchedi, WDoranWMF, holger.knust, EvanProdromou,
DannyS712, Amorymeltzer, Sethakill, dg711, Agabi10, Pchelolo, Legoktm
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs