{ "action": "query", "format": "json", "maxlag": "5", "list": "logevents", "meta": "userinfo", "indexpageids": 1, "continue": "-||userinfo", "letype": "upload", "lestart": "2022-04-18T00:00:00.000Z", "leend": "2022-04-18T23:59:59.999Z", "ledir": "newer", "lenamespace": "6", "lelimit": "5000", "lecontinue": "20220418143831|323543786", "uiprop": "blockinfo|hasmsg" }
Error
- mwversion: 1.39.0-wmf.8 (a4aaf3c)
- reqId: bf9acb80-f8bf-4600-b44c-6dab46ad4681
[{reqId}] {exception_url} Wikimedia\Rdbms\DBQueryTimeoutError: A database query timeout has occurred. Query: SET STATEMENT max_statement_time=30 FOR SELECT /*! STRAIGHT_JOIN */ log_id,log_type,log_action,log_timestamp,log_deleted,page_id,log_page,acto
from /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/database/Database.php(1775) #0 /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/database/Database.php(1763): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string) #1 /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/database/Database.php(1737): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string) #2 /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/database/Database.php(1217): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #3 /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/database/Database.php(1983): Wikimedia\Rdbms\Database->query(string, string, integer) #4 /srv/mediawiki/php-1.39.0-wmf.8/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(641): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array) #5 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiQueryBase.php(427): Wikimedia\Rdbms\SelectQueryBuilder->fetchResultSet() #6 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiQueryLogEvents.php(271): ApiQueryBase->select(string) #7 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiQuery.php(631): ApiQueryLogEvents->execute() #8 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiMain.php(1902): ApiQuery->execute() #9 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiMain.php(874): ApiMain->executeAction() #10 /srv/mediawiki/php-1.39.0-wmf.8/includes/api/ApiMain.php(845): ApiMain->executeActionWithErrorHandling() #11 /srv/mediawiki/php-1.39.0-wmf.8/api.php(90): ApiMain->execute() #12 /srv/mediawiki/php-1.39.0-wmf.8/api.php(45): wfApiMain() #13 /srv/mediawiki/w/api.php(3): require(string) #14 {main}
Impact
Since 2022-04-15 similar API queries have been timing out and returning error code internal_api_error_DBQueryTimeoutError.