The sync has started failing with the error below. I assume this is probably related to my token expiring, but I'm not sure what I need to do to refresh it (or if there's a way for the token to last longer)
Traceback (most recent call last):
Warning: unable to fetch athlete profile; skipping reset (403 Client Error: Forbidden for url: https://www.strava.com/api/v3/athlete)
File "/home/runner/work/git-sweaty/git-sweaty/scripts/run_pipeline.py", line 303, in <module>
raise SystemExit(main())
^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/run_pipeline.py", line 293, in main
run_pipeline(
File "/home/runner/work/git-sweaty/git-sweaty/scripts/run_pipeline.py", line 265, in run_pipeline
summary = _sync_for_source(source, dry_run=dry_run, prune_deleted=prune_deleted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/run_pipeline.py", line 215, in _sync_for_source
return sync_strava(dry_run=dry_run, prune_deleted=prune_deleted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 692, in sync_strava
recent_summary, token = _sync_recent(
^^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 625, in _sync_recent
activities, token = _run_with_token_refresh(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 354, in _run_with_token_refresh
return call(token), token
^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 630, in <lambda>
lambda access_token: _fetch_page(
^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 400, in _fetch_page
return _request_json_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/git-sweaty/git-sweaty/scripts/sync_strava.py", line 69, in _request_json_with_retry
resp.raise_for_status()
File "/opt/hostedtoolcache/Python/3.11.15/x64/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.strava.com/api/v3/athlete/activities?per_page=200&page=1&after=1782380939
Error: Process completed with exit code 1.
The sync has started failing with the error below. I assume this is probably related to my token expiring, but I'm not sure what I need to do to refresh it (or if there's a way for the token to last longer)