From 33e1571591327c6b1dc0b8d653f5276ae6bfab5e Mon Sep 17 00:00:00 2001 From: Pauljd Date: Tue, 17 Nov 2026 10:35:31 +0000 Subject: [PATCH] Log why the new-arrivals refresh fails The soak showed it failing every round from 12:00 with only the class name logged, and no request reaching the server. Co-Authored-By: Claude Opus 5.5 --- .../src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt index c60af90c..af7c44ff 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt @@ -473,7 +473,9 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea catch (failure: Exception) { android.util.Log.w("OrbitSchedule", "overnight catalogue failed=${failure.javaClass.simpleName}") } try { withContext(Dispatchers.IO) { BackgroundPacing.run { scheduler.refreshArrivals(active, active.accountId, catalogue) } } } catch (cancelled: CancellationException) { throw cancelled } - catch (failure: Exception) { android.util.Log.w("OrbitSchedule", "arrivals failed=${failure.javaClass.simpleName}") } + // The reason too (17 November 2026: it failed every round of the soak without a request reaching the server, and the + // class name alone couldn't say why). Orbit's own messages carry no token or address. + catch (failure: Exception) { android.util.Log.w("OrbitSchedule", "arrivals failed=${failure.javaClass.simpleName} status=${(failure as? EmbyCheckException)?.httpStatus} reason=${failure.message?.take(160)}", failure.takeUnless { it is EmbyCheckException }) } delay(60 * 60_000L) } }