<p>The new rails GPX import fails if given an archive containing multiple traces:</p>
<pre><code>Traceback (most recent call last):
        7: from (irb):1
        6: from app/models/trace.rb:287:in `import'
        5: from app/models/trace.rb:287:in `each_slice'
        4: from app/models/trace.rb:287:in `each'
        3: from lib/gpx.rb:28:in `points'
        2: from lib/gpx.rb:28:in `read'
        1: from config/initializers/libxml.rb:4:in `block in <main>'
LibXML::XML::Error (Fatal error: XML declaration allowed only at the start of the document at :1422.)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2253?email_source=notifications&email_token=AAK2OLLS3GRXKRWXL67BP4TPZ5XQ3A5CNFSM4HW4OL22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYYOA4Q">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOA4WY5XOSS4HYFLTTPZ5XQ3ANCNFSM4HW4OL2Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLOEJ2YLPI74QVL7HH3PZ5XQ3A5CNFSM4HW4OL22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYYOA4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2253?email_source=notifications\u0026email_token=AAK2OLLS3GRXKRWXL67BP4TPZ5XQ3A5CNFSM4HW4OL22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYYOA4Q",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2253?email_source=notifications\u0026email_token=AAK2OLLS3GRXKRWXL67BP4TPZ5XQ3A5CNFSM4HW4OL22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYYOA4Q",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>