From e17376ed6fe9aa124662a805f736bcd73d485dc7 Mon Sep 17 00:00:00 2001 From: oldnapalm <38410858+oldnapalm@users.noreply.github.com> Date: Wed, 3 May 2023 20:56:58 -0300 Subject: [PATCH] Fix issue loading achievements [ZNet] RRPC::IsRetryable (GetAchievements) outcome not ok: 429 [ZNet] RRPC::IsRetryable (GetPlayerPlaybackSettings) outcome not ok: 429 [ZNet] RRPC (GetPlayerPlaybackSettings) in error state, and initiating retry logic... [ZNet] RRPC backoff index: 1, backoff delay milliseconds: 1000 [ZNet] Unsuccessful network call HTTP_STATUS_UNAUTHORIZED! [UpdateProile] [34 ms] [ZNet] Unsuccessful network call HTTP_STATUS_TOO_MANY_REQUESTS! [GetAchievements] [34 ms] Failed to load achievements --- zwift_offline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zwift_offline.py b/zwift_offline.py index 4fe544c..6212860 100644 --- a/zwift_offline.py +++ b/zwift_offline.py @@ -1829,6 +1829,8 @@ def api_profiles_me_id(player_id): def api_profiles_id(player_id): if not request.stream: return '', 400 + if player_id == 0: + return '', 400 # can't return 401 to /api/profiles/0/in-game-fields (causes issues in following requests) if current_user.player_id != player_id: return '', 401 stream = request.stream.read()