Page MenuHomePhabricator

Failed to fetch API response from zh_min_nanwiktionary. Error code 0
Closed, DeclinedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.18

message
Failed to fetch API response from zh_min_nanwiktionary. Error code 0
Impact

It's only Warning level message but there are 709 of such messages for ruwiki.

Details

Request ID
bca2eb85-645f-4851-b809-76d61f7f9664
Request URL
https://ru.wikipedia.org/w/api.php?action=query&format=json&meta=unreadnotificationpages&uselang=ru&unpgrouppages=true&unpwikis=*&_=1606944465176
Stack Trace
exception.trace
n/a

Event Timeline

Some issues in the datacenter on cross wiki fetches?

				LoggerFactory::getInstance( 'Echo' )->warning(
					'Failed to fetch API response from {wiki}. Error code {code}',
					[
						'wiki' => $wiki,
						'code' => $response['response']['code'],
						'response' => $response['response']['body'],
						'request' => $reqs[$wiki],
					]
				);

Maybe the response body can say more

Cross wiki requests also failing in T273479: ApiEchoUnreadNotificationPages.php PHP Notice: Undefined index: query (which is the same api module as in the request)

We have a couple of these starting today. Either error code 0 and no response, or (less often) error code 500 and a response like

<!DOCTYPE html>
<html><head><title>Erreur interne — Wikipédia</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<div class="errorbox mw-content-ltr">[YD5GjDZDAoI2aDseKST@EAAAABE] 2021-03-02 14:07:24: Erreur fatale de type « Wikimedia\Rdbms\DBQueryError »</div>
<!-- Set $wgShowExceptionDetails = true; at the bottom
of LocalSettings.php to show detailed debugging
information. --></body></html>

The referenced error is Lock wait timeout exceeded; try restarting transaction with a trace of

from /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/Database.php(1684)
#0 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/Database.php(1662): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/Database.php(1231): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/DatabaseMysqlBase.php(1367): Wikimedia\Rdbms\Database->query(string, string, integer)
#3 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/Database.php(3256): Wikimedia\Rdbms\DatabaseMysqlBase->doReplace(string, array, array, string)
#4 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->replace(string, array, array, string)
#5 /srv/mediawiki/php-1.36.0-wmf.32/includes/libs/rdbms/database/DBConnRef.php(496): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /srv/mediawiki/php-1.36.0-wmf.32/extensions/AntiSpoof/includes/SpoofUser.php(169): Wikimedia\Rdbms\DBConnRef->replace(string, string, array, string)
#7 /srv/mediawiki/php-1.36.0-wmf.32/extensions/AntiSpoof/includes/SpoofUser.php(133): SpoofUser::batchRecord(Wikimedia\Rdbms\DBConnRef, array)
#8 /srv/mediawiki/php-1.36.0-wmf.32/extensions/CentralAuth/AntiSpoof/CentralAuthAntiSpoofHooks.php(123): SpoofUser->record()
#9 /srv/mediawiki/php-1.36.0-wmf.32/includes/HookContainer/HookContainer.php(333): CentralAuthAntiSpoofHooks::asLocalUserCreated(User, boolean)
#10 /srv/mediawiki/php-1.36.0-wmf.32/includes/HookContainer/HookContainer.php(140): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#11 /srv/mediawiki/php-1.36.0-wmf.32/includes/HookContainer/HookRunner.php(2459): MediaWiki\HookContainer\HookContainer->run(string, array)
#12 /srv/mediawiki/php-1.36.0-wmf.32/includes/auth/AuthManager.php(1787): MediaWiki\HookContainer\HookRunner->onLocalUserCreated(User, boolean)
#13 /srv/mediawiki/php-1.36.0-wmf.32/includes/Setup.php(823): MediaWiki\Auth\AuthManager->autoCreateUser(User, string, boolean)
#14 /srv/mediawiki/php-1.36.0-wmf.32/includes/WebStart.php(89): require_once(string)
#15 /srv/mediawiki/php-1.36.0-wmf.32/api.php(43): require(string)
#16 /srv/mediawiki/w/api.php(3): require(string)
#17 {main}

Those lock timeouts seem to be happening regularly. Maybe they are worth a task; this issue IMO isn't. This is just Echo failing to work when the API it depends on is broken, which is unavoidable.

Secondary error, did not happen in the last 90 days, closing.