Page MenuHomePhabricator

Elastica\Exception\ResponseException from line 56 of includes/Searcher.php:
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.41

message
[262f2e77-d793-4655-93c0-14282cc178fa] /w/api.php?action=query&prop=pageimages%7Cextracts%7Ccoordinates&pilimit=max&pithumbsize=320&piprop=thumbnail%7Cname&generator=geosearch&format=json&explaintext=true&exlimit=max&exintro=true&ggsradius=10000&ggscoord=57.7084604%7C11.969499&ggslimit=3   Elastica\Exception\ResponseException from line 56 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Searcher.php:

Impact

Notes

Details

Request ID
262f2e77-d793-4655-93c0-14282cc178fa
Request URL
https://sv.wikipedia.org/w/api.php?action=query&prop=pageimages%7Cextracts%7Ccoordinates&pilimit=max&pithumbsize=320&piprop=thumbnail%7Cname&generator=geosearch&format=json&explaintext=true&exlimit=max&exintro=true&ggsradius=10000&ggscoord=57.7084604%7C11.969499&ggslimit=3
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Api/QueryGeoSearchElastic.php(113): GeoData\Searcher->performSearch(Elastica\Query, array, string)
#1 /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Api/QueryGeoSearch.php(64): GeoData\Api\QueryGeoSearchElastic->run(ApiPageSet)
#2 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiPageSet.php(179): GeoData\Api\QueryGeoSearch->executeGenerator(ApiPageSet)
#3 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiPageSet.php(143): ApiPageSet->executeInternal(boolean)
#4 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiQuery.php(249): ApiPageSet->execute()
#5 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiMain.php(1593): ApiQuery->execute()
#6 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiMain.php(529): ApiMain->executeAction()
#7 /srv/mediawiki/php-1.35.0-wmf.41/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()
#8 /srv/mediawiki/php-1.35.0-wmf.41/api.php(90): ApiMain->execute()
#9 /srv/mediawiki/php-1.35.0-wmf.41/api.php(45): wfApiMain()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jeena renamed this task from [262f2e77-d793-4655-93c0-14282cc178fa] /w/api.php?action=query&prop=pageimages%7Cextracts%7Ccoordinates&pilimit=max&pithumbsize=320&piprop=thumbnail%7Cname&generator=geosearch&format=json&explaintext=true&exlimit=max&exintro=true&ggsradius=10000&ggscoord=57.7084604%7C11.969499&ggslimit=3 Elastica\Exception\ResponseException from line 56 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Searcher.php: to Elastica\Exception\ResponseException from line 56 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Searcher.php: .Jul 22 2020, 6:56 PM

@jeena, we're not able to reproduce this at the moment. Can you give more detail on how to reproduce or more context on the error?

The exception is thrown by GeoData extension itself:
It should include the request and response, but that is not included in the message above

		try {
			$log = $this->newLog( 'performing {queryType}', $queryType, [], $namespaces );
			$this->start( $log );
			$result = $search->search();
			if ( !$result->getResponse()->isOk() ) {
				$req = $this->connection->getClient()->getLastRequest();
				// Not really the right exception, this is probably a status code problem.
				throw new ResponseException( $req, $result->getResponse() );
			}
			$this->success();
		} catch ( ExceptionInterface $ex ) {
			$this->failure( $ex );
			throw $ex;
		}

Seen in logstash on 2020-07-29:

Error

MediaWiki version: 1.36.0-wmf.1

message
[b736115f-8dcb-4a52-8b97-1bee8b6540ef] /w/api.php?action=query&list=geosearch&gsradius=355&format=xml&gslimit=500&gscoord=46.5211|10.5485   Elastica\Exception\ResponseException from line 56 of /srv/mediawiki/php-1.36.0-wmf.1/extensions/GeoData/includes/Searcher.php:
exception.trace
#0 /srv/mediawiki/php-1.36.0-wmf.1/extensions/GeoData/includes/Api/QueryGeoSearchElastic.php(113): GeoData\Searcher->performSearch(Elastica\Query, array, string)
#1 /srv/mediawiki/php-1.36.0-wmf.1/extensions/GeoData/includes/Api/QueryGeoSearch.php(49): GeoData\Api\QueryGeoSearchElastic->run()
#2 /srv/mediawiki/php-1.36.0-wmf.1/includes/api/ApiQuery.php(263): GeoData\Api\QueryGeoSearch->execute()
#3 /srv/mediawiki/php-1.36.0-wmf.1/includes/api/ApiMain.php(1593): ApiQuery->execute()
#4 /srv/mediawiki/php-1.36.0-wmf.1/includes/api/ApiMain.php(529): ApiMain->executeAction()
#5 /srv/mediawiki/php-1.36.0-wmf.1/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()
#6 /srv/mediawiki/php-1.36.0-wmf.1/api.php(90): ApiMain->execute()
#7 /srv/mediawiki/php-1.36.0-wmf.1/api.php(45): wfApiMain()
#8 /srv/mediawiki/w/api.php(3): require(string)
#9 {main}

Change 627394 had a related patch set uploaded (by Ebernhardson; owner: Ebernhardson):
[mediawiki/extensions/GeoData@master] search: Pass through status return values from cirrus to api

https://gerrit.wikimedia.org/r/627394

Gehel triaged this task as High priority.Sep 15 2020, 9:00 AM
Gehel moved this task from Geodata to Current work on the Discovery-Search board.
Gehel edited projects, added Discovery-Search (Current work); removed Discovery-Search.

Change 627394 merged by jenkins-bot:
[mediawiki/extensions/GeoData@master] search: Pass through status return values from cirrus to api

https://gerrit.wikimedia.org/r/627394

Change 627394 merged by jenkins-bot:
[mediawiki/extensions/GeoData@master] search: Pass through status return values from cirrus to api

https://gerrit.wikimedia.org/r/627394

I am not sure, but this patch fixed something different from what's reported in the stack trace of task. And so the exception only increased as reported in T263128

Change 627394 merged by jenkins-bot:
[mediawiki/extensions/GeoData@master] search: Pass through status return values from cirrus to api

https://gerrit.wikimedia.org/r/627394

I am not sure, but this patch fixed something different from what's reported in the stack trace of task. And so the exception only increased as reported in T263128

https://gerrit.wikimedia.org/r/627394 is not deployed (not part of 1.36.0-wmf.9), T263128 is just a duplicate of this task I think which hopefully will be resolved once 1.36.0-wmf.10 is rolled out.

Reedy renamed this task from Elastica\Exception\ResponseException from line 56 of /srv/mediawiki/php-1.35.0-wmf.41/extensions/GeoData/includes/Searcher.php: to Elastica\Exception\ResponseException from line 56 of includes/Searcher.php:.Sep 23 2020, 10:50 PM

Only seeing logs for wmf.9 and earlier, nothing yet from wmf.10. Likely resolved.