Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying to upload an gpx #16

Open
chri2 opened this issue Aug 15, 2024 · 2 comments
Open

error when trying to upload an gpx #16

chri2 opened this issue Aug 15, 2024 · 2 comments

Comments

@chri2
Copy link

chri2 commented Aug 15, 2024

[30334:30385:0815/103619.375882:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
Traceback (most recent call last):
  File "/home/cvogel/sport/fittrackee-upload/git/fittrackee-uploader/uploader.py", line 265, in upload
    sport_id = self.getSportID(self.ui.cbSportType.currentText())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cvogel/sport/fittrackee-upload/git/fittrackee-uploader/uploader.py", line 234, in getSportID
    if len(self.sports) > 0:
       ^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
Abgebrochen (Speicherabzug geschrieben)

I uploaded to the same server for another account successfully, created a new account and tried to upload to the new one and got that error.

Please let me know what information I could provide to help solve this problem.

@slackline
Copy link
Collaborator

slackline commented Aug 15, 2024 via email

@chri2
Copy link
Author

chri2 commented Aug 16, 2024

Thanks for the answer. I'll look into getting one of those gpx cleared to pass on (those were not mine).

This has been simpler than I thought. Here's a file that provokes the error:

<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" version="1.1" creator="https://github.com/cmaion/polar">
  <metadata>
    <author>
      <name>https://github.com/cmaion/polar</name>
    </author>
    <time>2024-07-02T08:50:42+02:00</time>
  </metadata>
  <trk>
    <trkseg>
      <trkpt lat="0.11111111" lon="0.11111">
        <ele>100.0</ele>
        <time>2000-01-01T00:00:00+00:00</time>
        <extensions>
          <gpxtpx:TrackPointExtension>
            <gpxtpx:atemp>0.0</gpxtpx:atemp>
            <gpxtpx:hr>80</gpxtpx:hr>
            <gpxtpx:cad>0</gpxtpx:cad>
          </gpxtpx:TrackPointExtension>
        </extensions>
      </trkpt>
      <trkpt lat="0.11111112" lon="0.11112">
        <ele>100.0</ele>
        <time>2000-01-01T00:00:01+00:00</time>
        <extensions>
          <gpxtpx:TrackPointExtension>
            <gpxtpx:atemp>0.0</gpxtpx:atemp>
            <gpxtpx:hr>80</gpxtpx:hr>
            <gpxtpx:cad>0</gpxtpx:cad>
          </gpxtpx:TrackPointExtension>
        </extensions>
      </trkpt>
    </trkseg>
  </trk>
</gpx>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants