Skip to content

2FA failing sync ? #26

@bennnlarose

Description

@bennnlarose

Hi Chloe!

Thank you so much for this marvelous work!

The thing is I just can't make it work. The sync crashes 18 seconds after getting the email with a verification code for Garmin. I then get an error with exit code 1. I believe the error is caused by the 2FA ?

Run python garmin-activities.py
Traceback (most recent call last):
File "/home/runner/work/garmin-to-notion/garmin-to-notion/garmin-activities.py", line 293, in
main()
File "/home/runner/work/garmin-to-notion/garmin-to-notion/garmin-activities.py", line 266, in main
garmin.login()
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/garminconnect/init.py", line 249, in login
self.display_name = self.garth.profile["displayName"]
^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/garth/http.py", line 107, in profile
return self.user_profile
^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/garth/http.py", line 97, in user_profile
self._user_profile = self.connectapi(
^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/garth/http.py", line 184, in connectapi
resp = self.request(method, "connectapi", path, api=True, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.12/x64/lib/python3.11/site-packages/garth/http.py", line 132, in request
if not self.oauth2_token or self.oauth2_token.expired:
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'expired'
Error: Process completed with exit code 1.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions