mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
feat: better error logging for remote runtime (#6805)
This commit is contained in:
parent
df8bbc2b67
commit
003ebc0ded
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user