[openstreetmap/openstreetmap-website] GPX Upload from Basecamp fails (#2258)

mmd notifications at github.com
Fri Jun 14 12:16:30 UTC 2019


I could reproduce the issue:

Demo data: https://gist.githubusercontent.com/mmd-osm/578da03912f6b70d08131eaa13884090/raw/5a9c9ec7ed4ea4831a67678c92de573d750114b2/a.gpx

Error message:


> undefined method `type' for nil:NilClass /srv/www.openstreetmap.org/rails/lib/gpx.rb:54:in `rescue in points' /srv/www.openstreetmap.org/rails/lib/gpx.rb:47:in `points' /srv/www.openstreetmap.org/rails/app/models/trace.rb:287:in `each' /srv/www.openstreetmap.org/rails/app/models/trace.rb:287:in `each_slice' /srv/www.openstreetmap.org/rails/app/models/trace.rb:287:in `import' /srv/www.openstreetmap.org/rails/app/jobs/trace_importer_job.rb:5:in `perform' /var/lib/gems/2.5.0/gems/activejob-5.2.3/lib/active_job/execution.rb:39:in `block in perform_now' /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:109:in `block in run_callbacks' /var/lib/gems/2.5.0/gems/i18n-0.9.5/lib/i18n.rb:268:in `with_locale' /var/lib/gems/2.5.0/gems/activejob-5.2.3/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>' /var/lib/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:118:in `instance_exec' /var/lib


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2258#issuecomment-502086620
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190614/d171ae0f/attachment.html>


More information about the rails-dev mailing list