ebrithiljonas / fittrackee-uploader

A companion application for FitTrackee to upload your workout files
GNU Affero General Public License v3.0
14 stars 4 forks source link

error when trying to upload an gpx #16

Open chri2 opened 3 months ago

chri2 commented 3 months ago
[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 commented 3 months ago

I'm currently away from computers for a couple of weeks so can't check in detail but it might be that it's because the file is the other type from true GPX (.gpx)as I think the upload then tries to extract the activity type automatically. Will investigate when I get back. If you're able to share the track that would help.

Ignorance more frequently begets confidence than does knowledge - Charles Darwin PGP Public : 0x700172212EF5818B Websites : blog.nshephard.dev | wiki.nshephard.dev | forgejo.shephard.dev | sheffieldboulder.uk Photos : flickr.com/photos/slackline/ Sent from Proton Mail Android -------- Original Message --------On 15/08/2024 09:42, Chris Vogel wrote: [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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/ebrithiljonas/fittrackee-uploader/issues/16", "url": "https://github.com/ebrithiljonas/fittrackee-uploader/issues/16", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

chri2 commented 3 months ago

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>