From 37963ae41e6860a84d34a8677f9e3b0fbcfbe8c8 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 3 Sep 2025 21:27:04 -0400 Subject: [PATCH] [skip ci] Ignore getReceiverStatus, log error on rate limit --- CHANGELOG.md | 4 ++++ .../src/components/Services/LoungeService/LoungeApi.bs | 1 + .../src/components/Services/LoungeService/LoungeConstants.bs | 1 + playlet-lib/src/components/Telemetry/Sentry.bs | 1 + 4 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2697ab79..9597c882 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.41.3] - 2025-09-03 ### Fixed diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs index 6be7a696..26a38a0e 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs @@ -65,6 +65,7 @@ class LoungeApi commandHandlers[COMMAND_TYPE_REMOTE_DISCONNECTED] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GRACEFUL_RECONNECT] = m.HandleIgnoreCommand + commandHandlers[COMMAND_TYPE_GET_RECEIVER_STATUS] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_NOW_PLAYING] = m.HandleGetPlayingNow commandHandlers[COMMAND_TYPE_SESSION_ID] = m.HandleSessionId diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs index 56ab4150..5acd4e3a 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs @@ -27,6 +27,7 @@ const COMMAND_TYPE_SET_SUBTITLES = "setSubtitlesTrack" const COMMAND_TYPE_ON_USER_ACTIVITY = "onUserActivity" const COMMAND_TYPE_GET_DISCOVERT_DEVICE_ID = "getDiscoveryDeviceId" const COMMAND_TYPE_GRACEFUL_RECONNECT = "gracefulReconnect" +const COMMAND_TYPE_GET_RECEIVER_STATUS = "getReceiverStatus" ' Special commands const COMMAND_TYPE_SESSION_ID = "c" const COMMAND_TYPE_G_SESSION_ID = "S" diff --git a/playlet-lib/src/components/Telemetry/Sentry.bs b/playlet-lib/src/components/Telemetry/Sentry.bs index c4cec5f9..5ef9e329 100644 --- a/playlet-lib/src/components/Telemetry/Sentry.bs +++ b/playlet-lib/src/components/Telemetry/Sentry.bs @@ -84,6 +84,7 @@ namespace Sentry statusCode = response.StatusCode() if statusCode = 429 retryAfter = ValidInt(response.Headers()["Retry-After"]) + LogErrorNoTelemetry("Rate limited by Sentry. Retry after", retryAfter, "seconds") if retryAfter = 0 retryAfter = 60 end if