<p dir="auto">We've been including stack backtraces in gpx failure notifications since <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/93dab8a1272f8c807da841c0a55b37f74b65b8c3/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/93dab8a1272f8c807da841c0a55b37f74b65b8c3"><tt>93dab8a</tt></a>, but they are not useful for xml parse errors. If your file can't be parsed, the error is inside it, not in the code that called the parser.</p>
<p dir="auto">Not sending the backtrace in case of xml errors will kind of <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #2630.">fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621145715" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2630" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2630/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/2630">#2630</a>. We're still not going to check file types but the error message is going to be limited to a useful part like:</p>
<pre class="notranslate"><code class="notranslate">Fatal error: Start tag expected, '<' not found at :1.
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5226'>https://github.com/openstreetmap/openstreetmap-website/pull/5226</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226/commits/0b05bf030894acf81f069fef762998d568056d38" class="commit-link">0b05bf0</a>  Don't include stack backtraces on xml errors when importing traces</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226/files#diff-213f2b17d6c8732fec135ce33c196a75f1733c968bceb998416c992333f33fad">app/jobs/trace_importer_job.rb</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226/files#diff-0420a4fa1a39f26a3e6d7b27b78a29d7f31add0617d29917bc6ba8b2573c4984">test/gpx/fixtures/jpg.gpx</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226/files#diff-c828f9fb9fdff280fed8ad43e7b141eb12ff5f187cf571c0f39b8b60adec9ab1">test/jobs/trace_importer_job_test.rb</a>
    (15)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5226.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5226.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5226.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5226.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5226">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIR2LGS5DGPQKN4I4LZXLXGNAVCNFSM6AAAAABOQHKFPKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZTMNZUGUZTAMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLII3CASOSMYWAX23DLZXLXGNA5CNFSM6AAAAABOQHKFPKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJOM5JK4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5226</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5226",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5226",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>