mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-08-02 00:47:50 -07:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user