This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Garmin Connect API Internal Server Error 500

Hi,

The developer forum appears to be locked, so I am posting here.

I have a python script that uploads (TCX) activities to Garmin Connect, via the API and modelled after the tapiriik.com source code (which I think is API version 1.1) - I don't have 'proper' developer access to the API documentation since I don't have $5,000 lying around...

I have three problems:

1) When uploading an activity, I get an Internal Server Error (status code 500) from the API. The activity appears to be have been uploaded fine, however, although no activity ID is returned (as does happen, for instance, when uploading a duplicate activity - I get the ID of the existing activity). Does anyone have any information/experience on this?

2) The activity is named 'Untitled' - yet files uploaded manually via the GC web site get an automatic name based on the location and activity type. Is this expected behaviour? Is it related to the 500 error that happens? If not, how can an automatic name be set when uploading via the API?

3) The automatic sync to other services (e.g. Strava) is not triggered. If the file is uploaded manually via the GC web site, this does happen and the activity appears on Strava immediately. Is this expected behaviour? Is it related to the 500 error that happens? If not, how can the sync be triggered when uploading via the API?

Can Garmin or anyone help with that?