[OSM-dev] Difficulty fetching data from API in own app, but not browser
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... ;-)
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
> 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:
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev