Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Answer for an unknown node #2560

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Answer for an unknown node #2560

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: Marcussacapuces91
[Submitted to the original trac issue database at 5.59am, Thursday, 17th December 2009]

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

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 5.48pm, Thursday, 17th December 2009]

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant