feat: better error logging for remote runtime (#6805)

This commit is contained in:
Xingyao Wang 2025-02-19 12:54:34 -05:00 committed by GitHub
parent df8bbc2b67
commit 003ebc0ded
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,12 @@ class RemoteRuntime(ActionExecutionClient):
return False
self.log('debug', f'Error while looking for remote runtime: {e}')
raise
except requests.exceptions.JSONDecodeError as e:
self.log(
'error',
f'Invalid JSON response from runtime API: {e}. URL: {self.config.sandbox.remote_runtime_api_url}/sessions/{self.sid}. Response: {response}',
)
raise
if status == 'running':
return True