Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading Database Fails since 9/25/2023 #195

Closed
spartan-it opened this issue Sep 27, 2023 · 8 comments
Closed

Downloading Database Fails since 9/25/2023 #195

spartan-it opened this issue Sep 27, 2023 · 8 comments

Comments

@spartan-it
Copy link

Describe the bug
I have been running a pipeline where I download data every day from Garmin, but to my surprise, for the last two days, the process has been failing with the same error (see logs). I have not changed any files, especially GarminConnectConfig.json.

To Reproduce
Steps to reproduce the behavior:

  1. Create environment:
python3 -m venv garmin-env
  1. Activate environment:
source garmin-env/bin/activate 
  1. Install garmin db using pip:
pip install garmindb
  1. Add proper authentication to GarminConnectConfig.json
nano ~/.GarminDb/GarminConnectConfig.json
  1. Run the following command (update only; I already have data from years before):
garmindb_cli.py --all --download --import --analyze --latest

Expected behavior
I should see how the data is being downloaded and no errors at the end.

Logs

Running command: source /home/diegoalesar/garmin-env/bin/activate && garmindb_cli.py --all --download --import --analyze --latest
[2023-09-26, 20:00:26 EDT] {ssh.py:522} INFO - ___Downloading Latest Data___
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING - Traceback (most recent call last):
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -   File "/home/diegoalesar/garmin-env/bin/garmindb_cli.py", line 358, in <module>
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -     main(sys.argv[1:])
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -   File "/home/diegoalesar/garmin-env/bin/garmindb_cli.py", line 339, in main
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -     download_data(args.overwrite, args.latest, args.stats)
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -   File "/home/diegoalesar/garmin-env/bin/garmindb_cli.py", line 112, in download_data
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -     if not download.login():
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -   File "/home/diegoalesar/garmin-env/lib/python3.8/site-packages/garmindb/download.py", line 178, in login
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING -     self.display_name = self.user_prefs['displayName']
[2023-09-26, 20:00:28 EDT] {ssh.py:527} WARNING - TypeError: 'NoneType' object is not subscriptable
[2023-09-26, 20:00:29 EDT] {taskinstance.py:1824} ERROR - Task failed with exception

Please run bugreport.sh and attach bugreport.zip.
bugreport.zip

Additional context
I have been running the pipeline for about a month. I haven't made any changes to any files. I tried starting from zero with no luck either. Using python 3.8.10

@smacrico
Copy link

i get the exatly same issue.. maybe garmin changed something to way of loign??

@matin
Copy link

matin commented Sep 28, 2023

This is related to the same issue discussed in pe-st/garmin-connect-export#95. The issue can be resolved by migrating to Garth for the authentication (discussed in #192).

The discussion includes several examples of projects that performed the migration.

@smacrico
Copy link

This is related to the same issue discussed in pe-st/garmin-connect-export#95. The issue can be resolved by migrating to Garth for the authentication (discussed in #192).

The discussion includes several examples of projects that performed the migration.

thanks for the info! tried the changes got a step further of course with different authentication errors... Unfortunately i am not that good developer to fix this.. but i ll keep trying..

@tcgoetz
Copy link
Owner

tcgoetz commented Oct 1, 2023

The garth-migration branch is now working (auth, download, etc), but is not ready for merge yet.

@tcgoetz
Copy link
Owner

tcgoetz commented Oct 4, 2023

All tests are passing on the develop branch.

@smacrico
Copy link

smacrico commented Oct 4, 2023

Next stop: release!! Thank you so much!!

@tcgoetz
Copy link
Owner

tcgoetz commented Oct 4, 2023

https://github.com/tcgoetz/GarminDB/releases/tag/v3.5.0

@tcgoetz tcgoetz closed this as completed Oct 4, 2023
@spartan-it
Copy link
Author

I can confirm is working now. Thank you very much for your hard work! I highly appreciate it!

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

No branches or pull requests

4 participants