Open app4g opened 1 year ago
same here... a tragedy!
I see this error since 4-5 days ago:
garpy download --formats original --username --password
2023-09-29 16:19:13 INFO - Downloading the following formats: ('original',) to this folder: ...
2023-09-29 16:19:13 INFO - Querying list of activities
Traceback (most recent call last):
File "frozen runpy", line 198, in _run_module_as_main
File "frozen runpy", line 88, in _run_code
File "\AppData\Roaming\Python\Python311\Scripts\garpy.exe__main.py", line 7, in
I have a similar error message to @jamprogramacion
This is related to the same issue discussed in https://github.com/pe-st/garmin-connect-export/issues/95. The issue can be resolved by migrating to Garth for the authentication.
The discussion includes several examples of projects that performed the migration.
sigh.... not working
➜ ~ garpy download --formats fit -u username@gmail.com -p password -a 12xxxxxxx 2023-09-26 14:31:42 INFO - Authenticating GarminClient(username='username@gmail.com', user_agent='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36') 2023-09-26 14:31:43 DEBUG - POST request sent to https://sso.garmin.com/sso/signin?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern 2023-09-26 14:31:43 DEBUG - Request headers: {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate, br', 'origin': 'https://sso.garmin.com', 'Content-Length': '66', 'Content-Type': 'application/x-www-form-urlencoded'} 2023-09-26 14:31:43 DEBUG - Request data: username= username%40gmail.com&password=password&embed=false 2023-09-26 14:31:43 DEBUG - auth ticket url: 'https://connect.garmin.com/modern?ticket=ST-0362034-LUiLPhKH6UdSgt6nXuYZ-cas' 2023-09-26 14:31:43 INFO - Claiming auth ticket 2023-09-26 14:31:45 INFO - Downloading the following formats: ('original',) to this folder: /Users/username/activities 2023-09-26 14:31:45 INFO - Fetching summary information for activity: '12xxxxxx' 2023-09-26 14:31:45 DEBUG - -->GET request sent to URL: https://connect.garmin.com/proxy/activity-service/activity/12xxxxxxx with params: None 2023-09-26 14:31:46 ERROR - Failed to fetch 'summary' for activity id 12xxxxxx. Response code: 403 {"message":"HTTP 403 Forbidden","error":"ForbiddenException"} Traceback (most recent call last): File "/Users/username/.pyenv/versions/3.9.1/bin/garpy", line 8, in
sys.exit(main())
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/click/core.py", line 1130, in call
return self.main(args, kwargs)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(args, **kwargs)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/garpy/cli.py", line 91, in download
downloader(formats=formats, activity_id=activity_id)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/garpy/download.py", line 141, in call
activity = Activity.from_garmin_connect(activity_id, self.client)
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/garpy/activity.py", line 108, in from_garmin_connect
response = client.get_activity(activity_id, "summary")
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/garpy/client.py", line 228, in get_activity
response = self.get(
File "/Users/username/.pyenv/versions/3.9.1/lib/python3.9/site-packages/garpy/client.py", line 203, in get
raise ConnectionError(err_message)
ConnectionError: Failed to fetch 'summary' for activity id 12091532009.
Response code: 403
{"message":"HTTP 403 Forbidden","error":"ForbiddenException"}