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 <[email protected]>
Sent: 24 July 2018 21:44:24
To: [email protected]
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
[email protected]
https://lists.openstreetmap.org/listinfo/dev
_______________________________________________
dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/dev

Reply via email to