Skip to content

Conversation

@pe-st
Copy link

@pe-st pe-st commented Mar 11, 2018

This basically a port of my PR kjkjava#34 to your fork. Here's a copy of its description:

I had this error for a couple of activities:

Garmin Connect activity: [436081459] La Berra
        Sun, 26 Jan 2014 10:00, 05:14:09, 9.25 Kilometers
        Downloading file...
Traceback (most recent call last):
  File "./gcexport.py", line 215, in <module>
    data = http_req(download_url)
  File "./gcexport.py", line 74, in http_req
    raise Exception('Bad return code (' + str(response.getcode()) + ') for: ' + url)
Exception: Bad return code (204) for: https://connect.garmin.com/modern/proxy/download-service/export/gpx/activity/436081459

I fixed it by writing an empty GPX file in this case

No GPS data is indicated by HTTP status 204 (no content)

(reapplying commit 404165f to current state)
@moderation moderation merged commit 71dc1dd into moderation:master Mar 21, 2018
@pe-st pe-st deleted the feature/gpx-http-204 branch March 30, 2018 08:36
@pe-st pe-st restored the feature/gpx-http-204 branch May 6, 2018 16:15
moderation added a commit that referenced this pull request May 7, 2018
@pe-st pe-st deleted the feature/gpx-http-204 branch September 11, 2018 02:42
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

Successfully merging this pull request may close these issues.

2 participants