From 828837a969f9b245abc0bc436295af1067a27b34 Mon Sep 17 00:00:00 2001 From: Tim O'Farrell Date: Wed, 7 Jan 2026 15:55:57 -0700 Subject: [PATCH] APP-319: No longer logging error when idle sandboxes are stopped (#12296) --- .../live_status_app_conversation_service.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openhands/app_server/app_conversation/live_status_app_conversation_service.py b/openhands/app_server/app_conversation/live_status_app_conversation_service.py index ac4609e648..0074477bed 100644 --- a/openhands/app_server/app_conversation/live_status_app_conversation_service.py +++ b/openhands/app_server/app_conversation/live_status_app_conversation_service.py @@ -411,6 +411,16 @@ class LiveStatusAppConversationService(AppConversationServiceBase): conversation_info = _conversation_info_type_adapter.validate_python(data) conversation_info = [c for c in conversation_info if c] return conversation_info + except httpx.HTTPStatusError as exc: + # The runtime API stops idle sandboxes all the time and they return a 503. + # This is normal and should not be logged. + if not exc.response or exc.response.status_code != 503: + _logger.exception( + f'Error getting conversation status from sandbox {sandbox.id}', + exc_info=True, + stack_info=True, + ) + return [] except Exception: # Not getting a status is not a fatal error - we just mark the conversation as stopped _logger.exception(