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

AssertionError when authenticated #9

Open
osso73 opened this issue Dec 9, 2024 · 0 comments
Open

AssertionError when authenticated #9

osso73 opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@osso73
Copy link
Owner

osso73 commented Dec 9, 2024

This is the error:

Connecting to Garmin Connect...
Trying to login to Garmin Connect using token data from directory '~/.garminconnect'...

Traceback (most recent call last):
  File "C:\Cloud\Data\Programacion\GitHub\garmin-backup\.venv\Lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 124, in run
    module_init.run(name + "__main__")
  File "C:\Cloud\Data\Programacion\GitHub\garmin-backup\.venv\Lib\site-packages\cx_Freeze\initscripts\console.py", line 16, in run
    exec(code, module_main.__dict__)
  File "garmin-backup.py", line 361, in <module>
  File "garmin-backup.py", line 329, in main
  File "garmin-backup.py", line 98, in init_api
  File "c:\Cloud\Data\Programacion\GitHub\garmin-backup\.venv\Lib\site-packages\garminconnect\__init__.py", line 186, in login
    self.display_name = self.garth.profile["displayName"]
                        ^^^^^^^^^^^^^^^^^^
  File "c:\Cloud\Data\Programacion\GitHub\garmin-backup\.venv\Lib\site-packages\garth\http.py", line 104, in profile
    assert isinstance(self._profile, dict)
AssertionError

This is the same error as reported here in the python-garminconnect library. It is linked to a change in the authentication API of Gramin introducing MFA, as documented here.

It has now been fixed, I need to update my requirements file and fix it. Will create a new exe version.

@osso73 osso73 self-assigned this Dec 9, 2024
@osso73 osso73 added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant