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

Assertion Error? #238

Open
3NJDGZ opened this issue Nov 26, 2024 · 9 comments
Open

Assertion Error? #238

3NJDGZ opened this issue Nov 26, 2024 · 9 comments

Comments

@3NJDGZ
Copy link

3NJDGZ commented Nov 26, 2024

image image

For some reason, I am getting an AssertionError both when I run my flask application, as well as from the example.py file provided by this repo? Has anyone else encountered this problem?

@3NJDGZ
Copy link
Author

3NJDGZ commented Nov 26, 2024

It was working fine before with no assertion error (I have not changed any of the code).

@cyberjunky
Copy link
Owner

There is an issue with underlying lib because of API change by garmin #235

@bobgott
Copy link

bobgott commented Nov 27, 2024

I'm seeing the exact same problem as @3NJDGZ . I'll wait patiently for garth's fix to trickle into your next release (hopefully soon).

@eitanbehar
Copy link

eitanbehar commented Nov 27, 2024

same issue here, it worked fine until 25-Nov.
I was using an older library 0.2.8, upgraded to latest one 0.2.21, still same error 'AssertionError'

File "/src/Withings2Garmin/./sync.py", line 184, in <module>
   main()
 File "/src/Withings2Garmin/./sync.py", line 67, in main
   sync(**opts.__dict__)
 File "/src/Withings2Garmin/./sync.py", line 133, in sync
   garmin = init_garmin(garmin_username, garmin_password, verbose_print)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/src/Withings2Garmin/./sync.py", line 77, in init_garmin
   garmin.login(tokenstore)
 File "/usr/local/lib/python3.11/site-packages/garminconnect/__init__.py", line 230, in login
   self.display_name = self.garth.profile["displayName"]
                       ^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.11/site-packages/garth/http.py", line 104, in profile
   assert isinstance(self._profile, dict)
AssertionError

@cyberjunky
Copy link
Owner

Temp fixed in version 0.2.22!

@RobertWojtowicz
Copy link

RobertWojtowicz commented Nov 27, 2024

Temp fixed in version 0.2.22!

I confirm that it works :)
I added a description in my case: RobertWojtowicz/export2garmin#48

BR,
Robert

@eitanbehar
Copy link

Temp fixed in version 0.2.22!

fix works for me also! thanks!!!!

@bobgott
Copy link

bobgott commented Nov 27, 2024

Works for me as well, Thank you for the quick action

@robquail
Copy link

robquail commented Dec 8, 2024

I am suddenly seeing AssertionError with 0.2.23

garminconnect      0.2.23
garth              0.4.47

garminconnect\__init__.py", line 208, in login self.display_name = self.garth.profile["displayName"] ^^^^^^^^^^^^^^^^^^ File "...Lib\site-packages\garth\http.py", line 104, in profile assert isinstance(self._profile, dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError

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

6 participants