-
Notifications
You must be signed in to change notification settings - Fork 83
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
Breaking again - {"message":"HTTP 403 Forbidden","error":"ForbiddenException"} #103
Comments
Tonight was my first try at this package... getting similar error :
|
FYI: I just made a PR on the |
Update: PR for the solution is open: #104 |
How can we use that? Or do we just need to wait until it's merged into this repo? |
@Egregius While waiting on the merge of the PR, you can install @SimonBaars's forked branch like this:
|
Thanks for that, unfortunately that's not working here. Do I need to do something extra?
|
I have a PR (#105) up that addresses the issue on my end. If you'd like to try it out (before properly released) here are the steps: # Install and try out in an isolated virtual environment
python -m venv .venv
source .venv/bin/activate
pip install "git+https://github.com/petergardfjall/garminexport.git@browser-tls-fingerprint-bypass#egg=garminexport[impersonate_browser]"
garmin-backup --password=<pass> <email> |
The line
|
same issue |
The
Also, you should see a log line saying: If not, the right version of |
Seems better, but still some issues:
It worked a first time to download about 5 activities, and then stopped. Retry gave the above |
somehow I'm not able to get it. It keeps on getting to the "normal" cloudscraper branch In the end, I just used the normal python environment and still didn't work
also weird
|
Seems to be working fine tonight! Note that there were problems on garmin server yesterday so... |
Working here after these 2 commands:
Thank you! |
I have sorted out my whole python situation and now it is working.... thank you. |
This is because the endpoints for [WORKOUTS] [WEIGH-INS] [DAILIES] These changed today (20-Oct-2023) and are no longer proxies to their internal API. I don't have a pull request but with this information, somebody might be able to put one together more quickly than I can. |
See #107 (comment) |
I just released |
Seems like it's breaking again...
garmin-get-activity --password password1 --log-level DEBUG [email protected] 12xxxxxxx fit
<title>Success</title> <script type="text/javascript" src="/sso/js/jquery/3.1.1/jquery.min.js?20210319"></script> <script type="text/javascript">jQuery.noConflict();</script> <script type="text/javascript" src="/sso/js/json2.js"></script> <script type="text/javascript" src="/sso/js/consoleUtils.js?20210319"></script> <script type="text/javascript" src="/sso/js/postmessage.js?20210319"></script> <script type="text/javascript"> var redirectAfterAccountLoginUrl = ""; var redirectAfterAccountCreationUrl = ""; var consumeServiceTicket = "true"; var service_url = "https:\/\/connect.garmin.com\/modern\/"; var parent_url = ""; var response_url = "https:\/\/connect.garmin.com\/modern\/?ticket=ST-0357568-mLBwQntqJcj3ajh2biCW-cas"; var logintoken = ""; var socialLogin = ""; var performMFACheck = "";2023-09-26 16:59:47,883 [DEBUG] using session factory: cloudscraper
2023-09-26 16:59:47,903 [INFO] authenticating user ...
2023-09-26 16:59:47,903 [INFO] fetching CSRF token ...
2023-09-26 16:59:47,937 [DEBUG] Starting new HTTPS connection (1): sso.garmin.com:443
2023-09-26 16:59:48,394 [DEBUG] https://sso.garmin.com:443 "GET /sso/login?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern%2F&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso HTTP/1.1" 200 None
2023-09-26 16:59:49,520 [DEBUG] https://sso.garmin.com:443 "POST /sso/signin?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern%2F&gauthHost=https%3A%2F%2Fsso.garmin.com%2Fsso HTTP/1.1" 200 None
2023-09-26 16:59:49,521 [DEBUG] got auth response:
2023-09-26 16:59:49,522 [DEBUG] auth ticket url: 'https://connect.garmin.com/modern/?ticket=ST-0357568-mLBwQntqJcj3ajh2biCW-cas'
2023-09-26 16:59:49,522 [INFO] claiming auth ticket ...
2023-09-26 16:59:49,524 [DEBUG] Starting new HTTPS connection (1): connect.garmin.com:443
2023-09-26 16:59:50,106 [DEBUG] https://connect.garmin.com:443 "GET /modern/?ticket=ST-0357568-mLBwQntqJcj3ajh2biCW-cas HTTP/1.1" 302 0
2023-09-26 16:59:50,373 [DEBUG] https://connect.garmin.com:443 "GET /modern/ HTTP/1.1" 302 0
2023-09-26 16:59:50,636 [DEBUG] https://connect.garmin.com:443 "GET /signin/?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern%2F HTTP/1.1" 200 None
2023-09-26 16:59:50,904 [DEBUG] https://connect.garmin.com:443 "GET /modern HTTP/1.1" 302 0
2023-09-26 16:59:51,260 [DEBUG] https://sso.garmin.com:443 "GET /sso/login?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern%2F&webhost=https%3A%2F%2Fconnect.garmin.com&gateway=true&generateExtraServiceTicket=true&generateTwoExtraServiceTickets=true&clientId=GarminConnect HTTP/1.1" 302 0
2023-09-26 16:59:51,702 [DEBUG] https://connect.garmin.com:443 "GET /modern/ HTTP/1.1" 302 0
2023-09-26 16:59:51,974 [DEBUG] https://connect.garmin.com:443 "GET /signin/?service=https%3A%2F%2Fconnect.garmin.com%2Fmodern%2F HTTP/1.1" 200 None
2023-09-26 16:59:51,975 [INFO] fetching activity 12091532009 ...
2023-09-26 16:59:52,307 [DEBUG] https://connect.garmin.com:443 "GET /proxy/activity-service/activity/12091532009 HTTP/1.1" 403 None
2023-09-26 16:59:52,309 [ERROR] failed to fetch json summary for activity 12xxxxxxx: 403
{"message":"HTTP 403 Forbidden","error":"ForbiddenException"}
2023-09-26 16:59:52,309 [ERROR] failed with exception: failed to fetch json summary for activity 12xxxxxxx: 403
{"message":"HTTP 403 Forbidden","error":"ForbiddenException"}
Traceback (most recent call last):
File "/Users/username/.pyenv/versions/3.11.3/bin/garmin-get-activity", line 8, in
sys.exit(main())
^^^^^^
File "/Users/username/.pyenv/versions/3.11.3/lib/python3.11/site-packages/garminexport/cli/get_activity.py", line 68, in main
summary = client.get_activity_summary(args.activity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/username/.pyenv/versions/3.11.3/lib/python3.11/site-packages/garminexport/garminclient.py", line 73, in check_session
return client_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/username/.pyenv/versions/3.11.3/lib/python3.11/site-packages/garminexport/garminclient.py", line 290, in get_activity_summary
raise Exception(u"failed to fetch json summary for activity {}: {}\n{}".format(
Exception: failed to fetch json summary for activity 12xxxxxxx: 403
{"message":"HTTP 403 Forbidden","error":"ForbiddenException"}
The text was updated successfully, but these errors were encountered: