Skip to content

Authentication error #53

@piotrszymanek

Description

@piotrszymanek

Authentication to Garmin stopped working.
I have moved the (old) tokens to force creation of new ones, then script asked for login and pass and then it did not ask for the 2FA code, but stopped:

python gcexport.py -ss /.garth-ps -c 10 -d export_ps -s gpx -t csv_header_ps.properties -f original
(garmin) ps@psrv:
/python/garmin$ python gcexport.py -ss ~/.garth-ps -c 10 -d export_ps -s gpx -t csv_header_ps.properties -f original
Welcome to Garmin Connect Exporter!
[WARNING] Output directory export_ps already exists. Will skip already-downloaded files and append to the CSV file.
Authenticating...Username: pio.szymanek@gmail.com
Password:
[ERROR] Processing aborted.
[ERROR] Authentication failure (Error in request: 429 Client Error: Too Many Requests for url: https://sso.garmin.com/sso/signin?id=gauth-widget&embedWidget=true&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&service=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&source=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountLoginUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountCreationUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed). Did you enter correct credentials?
Traceback (most recent call last):
File "/home/ps/python/garmin/lib/python3.10/site-packages/garth/http.py", line 143, in request
self.last_resp.raise_for_status()
File "/home/ps/python/garmin/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://sso.garmin.com/sso/signin?id=gauth-widget&embedWidget=true&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&service=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&source=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountLoginUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountCreationUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ps/python/garmin/gcexport.py", line 502, in login_to_garmin_connect
garth.login(username, password)
File "/home/ps/python/garmin/lib/python3.10/site-packages/garth/http.py", line 164, in login
self.oauth1_token, self.oauth2_token = sso.login(
File "/home/ps/python/garmin/lib/python3.10/site-packages/garth/sso.py", line 127, in login
client.post(
File "/home/ps/python/garmin/lib/python3.10/site-packages/garth/http.py", line 155, in post
return self.request("POST", *args, **kwargs)
File "/home/ps/python/garmin/lib/python3.10/site-packages/garth/http.py", line 145, in request
raise GarthHTTPError(
garth.exc.GarthHTTPError: Error in request: 429 Client Error: Too Many Requests for url: https://sso.garmin.com/sso/signin?id=gauth-widget&embedWidget=true&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&service=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&source=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountLoginUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountCreationUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/ps/python/garmin/gcexport.py", line 1345, in
main(sys.argv)
File "/home/ps/python/garmin/gcexport.py", line 1280, in main
login_to_garmin_connect(args)
File "/home/ps/python/garmin/gcexport.py", line 512, in login_to_garmin_connect
raise GarminException(f'Authentication failure ({ex}). Did you enter correct credentials?') from ex
GarminException: Authentication failure (Error in request: 429 Client Error: Too Many Requests for url: https://sso.garmin.com/sso/signin?id=gauth-widget&embedWidget=true&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&service=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&source=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountLoginUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed&redirectAfterAccountCreationUrl=https%3A%2F%2Fsso.garmin.com%2Fsso%2Fembed). Did you enter correct credentials?

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