<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks for that.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">As it happens the error was the same as the github issue below; it was due to aan NPE caused by getTags() returning null.</p>
<p style="margin-top:0;margin-bottom:0">What threw me a bit was that the code was catching the NPE and throwing it as an XML parser exception.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Next time: make sure I print the full stack trace... ;-)</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Nick<br>
</p>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mmd <mmd.osm@gmail.com><br>
<b>Sent:</b> 24 July 2018 21:44:24<br>
<b>To:</b> dev@openstreetmap.org<br>
<b>Subject:</b> Re: [OSM-dev] Difficulty fetching data from API in own app, but not browser</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am 24.07.2018 um 17:47 schrieb Nick Whitelegg:<br>
> <br>
<br>
> The error is an odd one and seems to be related to the XML parser within<br>
> osmapi:<br>
> <br>
> specifically "Error parsing XML at END_TAG, line 25670".<br>
> <br>
<br>
Similar error messages have been reported in the osmapi repo before.<br>
Maybe you want to review them in more detail, like the following one:<br>
<a href="https://github.com/westnordost/osmapi/issues/13">https://github.com/westnordost/osmapi/issues/13</a><br>
<br>
After all, the parsing error might turn out to be a completely different<br>
error in your own code rather than some issue in the osmapi library.<br>
<br>
-- <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
dev mailing list<br>
dev@openstreetmap.org<br>
<a href="https://lists.openstreetmap.org/listinfo/dev">https://lists.openstreetmap.org/listinfo/dev</a><br>
</div>
</span></font></div>
</body>
</html>