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

Garmin Upload - Authentication Error #62

Closed
jgramajo4 opened this issue Jan 6, 2021 · 19 comments
Closed

Garmin Upload - Authentication Error #62

jgramajo4 opened this issue Jan 6, 2021 · 19 comments

Comments

@jgramajo4
Copy link

Has anyone started encountering this issue recently? I have had this running without any issues for about 1.5 weeks and randomly overnight I started getting this issue below even though the password and everything is correct and I havent changed any settings.

`2021-01-06 03:23:47,402 [CRITICAL] Login Failure: Authentification failed.

Traceback (most recent call last):

File "/opt/app/peloton-to-garmin.py", line 158, in

PelotonToGarmin.run(config)

File "/opt/app/peloton-to-garmin.py", line 86, in run

raise e

File "/opt/app/peloton-to-garmin.py", line 83, in run

garminUploader.uploadToGarmin(garminUploadHistoryTable)

File "/opt/app/lib/garminClient.py", line 29, in uploadToGarmin

assert self.user.authenticate(), "Failed to authenticate garmin user."

AssertionError: Failed to authenticate garmin user.`

@philosowaffle
Copy link
Owner

Hmmm, I am also seeing this error now. I fear Garmin may have closed off the "unofficial" authentication method this tool was using: https://github.com/La0/garmin-uploader

I'll have to see if the original author can either help find a fix, or see if I can figure it out myself.

@philosowaffle philosowaffle pinned this issue Jan 6, 2021
@philosowaffle philosowaffle changed the title Garmin Upload Garmin Upload - Authentication Error Jan 6, 2021
@philosowaffle
Copy link
Owner

Logged an issue on the related library. If I have the time I will also try to see if I can find a fix and submit a pr.

La0/garmin-uploader#20

@greenperro
Copy link

Hello, I think this is the error I'm getting too, but the main window disappears too quickly for me to see the error. The log file ends on "uploading...."

@philosowaffle
Copy link
Owner

Alright, this should be resolved now.

If you use the zip .exe from the release page then just grab the latest release from here.

If you are using the master branch then fetch latest and re-run pip install -r requirements.txt to pick up the latest package version of the garmin-uploader library.

@amy26point2
Copy link

I use the master branch. After running the pip install -requirements.txt it said it uninstalled the old garmin-uploader and successfully installed garmin-uploader-1.0.8, however I'm still getting the same failed to authenticate garmin user error.

@philosowaffle
Copy link
Owner

I just re-tested this locally and upload seems to be working ok for me.

Do you mind double checking the version with:

pip show garmin-uploader

One other thing to check, verify when you fetched latest master branch that it did not overwrite your config.ini file back to default.

@amy26point2
Copy link

The uploader version is showing as 1.0.8. I did preserve my old config.ini file and manually checked that the password saved there has no issues with logging into the Garmin site. I also gave it the old cross your fingers and reboot, but no luck.

2021-01-07 08:25:48,520 - INFO - peloton-to-garmin: Uploading activities to Garmin...
2021-01-07 08:25:49,519 [CRITICAL] Login Failure: Authentification failed.
Traceback (most recent call last):
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 95, in
PelotonToGarmin.run(config)
File "/Users/awLibrary/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 82, in run
raise e
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 79, in run
garminUploader.uploadToGarmin(garminUploadHistoryTable)
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/lib/garminClient.py", line 29, in uploadToGarmin
assert self.user.authenticate(), "Failed to authenticate garmin user."
AssertionError: Failed to authenticate garmin user.

@mhjansen79
Copy link

@Octopusprime83 any chance you could update the docker image on docker hub with this fix? Or I'm more than happy to learn to do it and help you keep the docker image up to date in the future.

@gabeosx
Copy link

gabeosx commented Jan 9, 2021

I still cannot get mine to upload. I preserved my config.ini and checked the password. Anyone know what to do? garmin-uploader is showing as 1.0.8.

@philosowaffle
Copy link
Owner

philosowaffle commented Jan 9, 2021

Seems we have atleast 2 people for which this is not working. It is working for me, is it working for anyone else?

For anyone else who is following along, leave a reaction on this comment
thumbs up = working
thumbs down = not working - leave a comment about your setup or any information you may think helpful. I'm not sure what to look for, but may be helpful to identify what is common between the people still experiencing issues.

@Carbja23
Copy link

Carbja23 commented Jan 9, 2021 via email

@akramer115
Copy link

akramer115 commented Jan 9, 2021

The uploader version is showing as 1.0.8. I did preserve my old config.ini file and manually checked that the password saved there has no issues with logging into the Garmin site. I also gave it the old cross your fingers and reboot, but no luck.

2021-01-07 08:25:48,520 - INFO - peloton-to-garmin: Uploading activities to Garmin...
2021-01-07 08:25:49,519 [CRITICAL] Login Failure: Authentification failed.
Traceback (most recent call last):
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 95, in
PelotonToGarmin.run(config)
File "/Users/awLibrary/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 82, in run
raise e
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/peloton-to-garmin.py", line 79, in run
garminUploader.uploadToGarmin(garminUploadHistoryTable)
File "/Users/aw/Library/Mobile Documents/comappleCloudDocs/Training/peloton-to-garmin-master/lib/garminClient.py", line 29, in uploadToGarmin
assert self.user.authenticate(), "Failed to authenticate garmin user."
AssertionError: Failed to authenticate garmin user.

This is my error too. I am using the new config file. Not sure if any of this is helpful, but I am using pip version 20.2.4, Python 3.9

@philosowaffle - thank you btw for maintaining this so well. It's been a lifesaver!

@amy26point2
Copy link

I tried reinstalling python tonight and upgraded pip from 20.2.3 to 20.3.3, but it still threw the failed to authenticate garmin user error.

@philosowaffle
Copy link
Owner

Alright, new thing to try. Let's see if you still get the authentication error when you use garmin-uploader directly.

https://github.com/La0/garmin-uploader#examples

If you still get an authentication error then I think we need to open a new issue on the garmin-uploader project so that La0 can investigate.

@akramer115
Copy link

@philosowaffle tried the garmin uploader directly and still getting auth issues. Triple checked creds too.

2021-01-10 11:31:24,590 [INFO] Try to login on GarminConnect...
2021-01-10 11:31:26,945 [CRITICAL] Login Failure: Login check failed.
Error: Invalid credentials

@philosowaffle
Copy link
Owner

Thanks for testing that out. At this point, I would recommend one of y'all experiencing the login issue open a fresh ticket on the garmin-upload project. Hopefully, the owner will have some more insight on what may be going on.

@akramer115
Copy link

Just submitted here.

@amy26point2 if you still have issues with the authentication too, please feel free to add to my ticket

@gabeosx
Copy link

gabeosx commented Jan 10, 2021

Mine started working today for no apparent reason

@amy26point2
Copy link

Thank you. I did update to the ticket.

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

8 participants