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:
oldnapalm
2023-05-03 20:56:58 -03:00
parent 1099c6726a
commit e17376ed6f
+2
View File
@@ -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()