[OSM-dev] Difficulty fetching data from API in own app, but not browser
Nick Whitelegg
nick.whitelegg at solent.ac.uk
Thu Jul 26 16:02:54 UTC 2018
Thanks for that.
As it happens the error was the same as the github issue below; it was due to aan NPE caused by getTags() returning null.
What threw me a bit was that the code was catching the NPE and throwing it as an XML parser exception.
Next time: make sure I print the full stack trace... ;-)
Nick
________________________________
From: mmd <mmd.osm at gmail.com>
Sent: 24 July 2018 21:44:24
To: dev at openstreetmap.org
Subject: Re: [OSM-dev] Difficulty fetching data from API in own app, but not browser
Am 24.07.2018 um 17:47 schrieb Nick Whitelegg:
>
> The error is an odd one and seems to be related to the XML parser within
> osmapi:
>
> specifically "Error parsing XML at END_TAG, line 25670".
>
Similar error messages have been reported in the osmapi repo before.
Maybe you want to review them in more detail, like the following one:
https://github.com/westnordost/osmapi/issues/13
After all, the parsing error might turn out to be a completely different
error in your own code rather than some issue in the osmapi library.
--
_______________________________________________
dev mailing list
dev at openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20180726/4db7e257/attachment.html>
More information about the dev
mailing list