Opened 10 years ago

Closed 10 years ago

#2560 closed defect (fixed)

Answer for an unknown node

Reported by: Marcussacapuces91 Owned by: openstreetmap@…
Priority: major Milestone:
Component: nominatim Version:
Keywords: unknown node Cc:

Description

Hi,

I use to make reverse geocoding request(sss ;-) on nominatim giving a node ID. Most of the time I receive a filled answer. But some time I receive an xml string with a strange error message probably generated because the node is actually unknown :

<?xml version="1.0" encoding="UTF-8" ?>
<reversegeocode timestamp='Thu, 17 Dec 09 17:32:42 +0000' attribution='Data Copyright OpenStreetMap Contributors, Some Rights Reserved. CC-BY-SA 2.0.' querystring='osm_type=N&amp;osm_id=595296746'>
<result></result><addressparts><br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/nominatim/.htlib/output/address-xml.php</b> on line <b>19</b><br />
</addressparts></reversegeocode>

I suggest to return an http error instead of that xml string.

Regards, -- Marc

Change History (2)

comment:1 Changed 10 years ago by twain

Summary: Answer for an unkwonw nodeAnswer for an unknown node

Now returns an error code instead (reason for the error is that the node has not yet been load BTW)

comment:2 Changed 10 years ago by twain

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.