Hi.
First off, awesome project. I'm trying to use this with my new Mio 505 to upload bike rides to Garmin Connect (I'm a triathlete so everything else goes there). It seems to log .bin, .fit and .gpx files to it's local memory.
GPX files load with no drama whatsover, but .fit files all fail with this:
gupload.py -v 1 -l <username> <password> Farnborough_20140605_113124.fit
DEBUG:root:Using credentials from command line.
DEBUG:root:Username: <redacted>
DEBUG:root:Password: <redacted>
DEBUG:root:Filename: Farnborough_20140605_113124.fit
DEBUG:root:File exists.
DEBUG:root:File Extension: .fit
DEBUG:root:File 'Farnborough_20140605_113124.fit' extension '.fit' is valid.
INFO:root:Rate limited for 0.000000
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET / HTTP/1.1" 302 0
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): sso.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /sso/login?consumeServiceTicket=false&service=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&clientId=GarminConnect HTTP/1.1" 200 7247
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): sso.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /sso/login?consumeServiceTicket=false&service=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&clientId=GarminConnect HTTP/1.1" 200 1938
INFO:root:Rate limited for 0.000000
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /post-auth/login?ticket=ST-0240118-vIvdbb2qbKnfEOuAie1g-cas HTTP/1.1" 302 0
INFO:root:Rate limited for 0.765470
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /post-auth/login HTTP/1.1" 302 0
INFO:root:Login Successful.
INFO:root:Rate limited for 0.350277
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /proxy/upload-service-1.1/json/upload/.fit HTTP/1.1" 200 345
File: Farnborough_20140605_113124.fit ID: [{u'content': u'An unexpected error occurred while processing the file..', u'code': 500}] Status: FAIL
Is this Garmin chucking a wobbly or gcpupload? Any ideas?
Regards...
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
First off, awesome project. I'm trying to use this with my new Mio 505 to upload bike rides to Garmin Connect (I'm a triathlete so everything else goes there). It seems to log .bin, .fit and .gpx files to it's local memory.
GPX files load with no drama whatsover, but .fit files all fail with this:
gupload.py -v 1 -l <username> <password> Farnborough_20140605_113124.fit
DEBUG:root:Using credentials from command line.
DEBUG:root:Username: <redacted>
DEBUG:root:Password: <redacted>
DEBUG:root:Filename: Farnborough_20140605_113124.fit
DEBUG:root:File exists.
DEBUG:root:File Extension: .fit
DEBUG:root:File 'Farnborough_20140605_113124.fit' extension '.fit' is valid.
INFO:root:Rate limited for 0.000000
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET / HTTP/1.1" 302 0
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): sso.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /sso/login?consumeServiceTicket=false&service=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&clientId=GarminConnect HTTP/1.1" 200 7247
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): sso.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /sso/login?consumeServiceTicket=false&service=http%3A%2F%2Fconnect.garmin.com%2Fpost-auth%2Flogin&clientId=GarminConnect HTTP/1.1" 200 1938
INFO:root:Rate limited for 0.000000
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /post-auth/login?ticket=ST-0240118-vIvdbb2qbKnfEOuAie1g-cas HTTP/1.1" 302 0
INFO:root:Rate limited for 0.765470
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /post-auth/login HTTP/1.1" 302 0
INFO:root:Login Successful.
INFO:root:Rate limited for 0.350277
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): connect.garmin.com
DEBUG:requests.packages.urllib3.connectionpool:"POST /proxy/upload-service-1.1/json/upload/.fit HTTP/1.1" 200 345
File: Farnborough_20140605_113124.fit ID: [{u'content': u'An unexpected error occurred while processing the file..', u'code': 500}] Status: FAIL
Is this Garmin chucking a wobbly or gcpupload? Any ideas?
Regards...
Tom
Hi Tom,
I'm currently on vacation and cannot look into the problem. I'll try to take a look when I get back and settled.
It looks like the login is working okay, but it doesn't like something about the fit file.
Have you tried manually uploading that file through the GC web site to see if the file is somehow corrupted?
Hmm interesting. A manual upload chokes too. That's a bit rubbish.
I'll go whinge at the Mio guys!
Thanks!
Tom