Page MenuHomePhabricator

"OutOfRangeException: Latitude needs to be between -360 and 360" from action=wbparsevalue API
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.10

message
OutOfRangeException: Latitude needs to be between -360 and 360

Impact

Notes

  • Fixing this shouldn't take too long. Just catch this exception somewhere appropriate and give back a proper error in the API

Details

Request ID
XfPLpApAIDwAAKKn9cEAAACR
Request URL
https://www.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=%1F428%C2%B046%2748%22N%2C%202%C2%B05%2724%22E&options=%7B%22lang%22%3A%22en%22%7D
Stack Trace
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.10/vendor/data-values/geo/src/Values/LatLongValue.php(51): DataValues\Geo\Values\LatLongValue->assertIsLatitude(double)
#1 /srv/mediawiki/php-1.35.0-wmf.10/vendor/data-values/geo/src/Parsers/LatLongParserBase.php(106): DataValues\Geo\Values\LatLongValue->__construct(double, double)
#2 /srv/mediawiki/php-1.35.0-wmf.10/vendor/data-values/geo/src/Parsers/DdCoordinateParser.php(114): DataValues\Geo\Parsers\LatLongParserBase->parse(string)
#3 /srv/mediawiki/php-1.35.0-wmf.10/vendor/data-values/geo/src/Parsers/GlobeCoordinateParser.php(54): DataValues\Geo\Parsers\DdCoordinateParser->parse(string)
#4 /srv/mediawiki/php-1.35.0-wmf.10/extensions/Wikibase/repo/includes/Api/ParseValue.php(198): DataValues\Geo\Parsers\GlobeCoordinateParser->parse(string)
#5 /srv/mediawiki/php-1.35.0-wmf.10/extensions/Wikibase/repo/includes/Api/ParseValue.php(110): Wikibase\Repo\Api\ParseValue->parseStringValue(DataValues\Geo\Parsers\GlobeCoordinateParser, string, NULL)
#6 /srv/mediawiki/php-1.35.0-wmf.10/includes/api/ApiMain.php(1603): Wikibase\Repo\Api\ParseValue->execute()
#7 /srv/mediawiki/php-1.35.0-wmf.10/includes/api/ApiMain.php(539): ApiMain->executeAction()
#8 /srv/mediawiki/php-1.35.0-wmf.10/includes/api/ApiMain.php(510): ApiMain->executeActionWithErrorHandling()
#9 /srv/mediawiki/php-1.35.0-wmf.10/api.php(78): ApiMain->execute()
#10 /srv/mediawiki/w/api.php(3): require(string)
#11 {main}

Event Timeline

Addshore triaged this task as Medium priority.Dec 16 2019, 12:57 PM
Addshore moved this task from Incoming to Ready to estimate on the Wikidata-Campsite board.
Krinkle renamed this task from Exception when Latitude outside -360 and 360 is given to wbparsevalue to "OutOfRangeException: Latitude needs to be between -360 and 360" from action=wbparsevalue API.Dec 17 2019, 9:14 PM
Krinkle updated the task description. (Show Details)

This will get fixed after upgrading to geo 4.2.1

Already looked at this, it only needs upgrade of geo.