petergardfjall / garminexport

Garmin Connect activity exporter and backup tool
Apache License 2.0
507 stars 83 forks source link

failed with exception: {list_activities}: gave u p after 8 failed attempt(s) #21

Closed spawn-github closed 6 years ago

spawn-github commented 6 years ago

Hi,

Sometime between Mar 21st (last successful workout backed up) and Mar 23rd (first failed workout to back up) and all workouts since, fail to backup. I believe this is because the workouts no longer contain an "activitySummary".

It doesn't appear that I've done anything that would prevent the activitySummary from appearing in the workouts, based on an observation that the 1.1 api still presents "activitySummaryBeginTimestamp" for the same workouts that are missing activitySummary via the 1.2 api, but I'm hoping to confirm if this is a change on garmin's side, or if it's somehow an issue with my account.

Happy to provide any additional info, if it'd be useful.

Thanks!

inginero commented 6 years ago

I am observing the same issue with downloading activities. I had been using a version of the utility last downloaded from GitHub mid-2017. (Sorry... don't have the version.) It had been running without major issue since that time. My last successful activity download was 3/21/2018. Today (3/31/2018) was my first attempt since then. After the initial failures I pulled the latest build with the new max retry and received a filed exception following the 8th retry.

inginero commented 6 years ago

2018-03-31 14:26:19,928 [INFO] claiming auth ticket ... 2018-03-31 14:26:22,086 [INFO] scanning activities for *****... 2018-03-31 14:26:22,086 [INFO] {list_activities}: attempt 1 ... 2018-03-31 14:26:22,086 [DEBUG] fetching activities 0 through 99 ... ... 2018-03-31 14:26:47,006 [INFO] {list_activities}: attempt 5 ... 2018-03-31 14:26:47,006 [DEBUG] fetching activities 0 through 99 ... 2018-03-31 14:26:49,492 [DEBUG] {list_activities}: failed: error: 'activitySummary' 2018-03-31 14:26:49,492 [INFO] {list_activities}: waiting 16 seconds for next attempt ...

brentk7 commented 6 years ago

Also seeing this same issue.

petergardfjall commented 6 years ago

I'm looking into it. I think I'm onto something...

petergardfjall commented 6 years ago

Would you mind trying with the latest commit on master?

Appears like the old activity listing endpoint no longer works, so I switched from https://connect.garmin.com/proxy/activity-search-service-1.2/json/activities to https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities.

Furthermore, the old activity details json endpoint appears to have stopped working as well, so I replaced https://connect.garmin.com/modern/proxy/activity-service-1.3/json/activity_embed/<id> with https://connect.garmin.com/modern/proxy/activity-service/activity/<id>.

inginero commented 6 years ago

It worked great. Thank you, Peter. (Thanks, as well, for the extra notes on what you found.)

pavlinux commented 6 years ago

Hurrah, worked!!!